summaryrefslogtreecommitdiffstats
path: root/spec/partials.js
diff options
context:
space:
mode:
authorKevin Decker <kpdecker@gmail.com>2014-11-29 18:02:12 -0600
committerKevin Decker <kpdecker@gmail.com>2014-11-29 18:02:12 -0600
commitd4070c36675bfecee290f20bd2d9c23a50e9e00b (patch)
tree0fdf5adfe0824f0310fe1745effcc1576d060933 /spec/partials.js
parent3a9440f954092558275cd4c05a35ba34bcbfa210 (diff)
parenta655aedb5cf523430b08ada5f8cc4730d1db3e5b (diff)
downloadhandlebars.js-d4070c36675bfecee290f20bd2d9c23a50e9e00b.zip
handlebars.js-d4070c36675bfecee290f20bd2d9c23a50e9e00b.tar.gz
handlebars.js-d4070c36675bfecee290f20bd2d9c23a50e9e00b.tar.bz2
Merge pull request #915 from wycats/ast-update
Ast update
Diffstat (limited to 'spec/partials.js')
-rw-r--r--spec/partials.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/partials.js b/spec/partials.js
index a1e0538..b150942 100644
--- a/spec/partials.js
+++ b/spec/partials.js
@@ -23,6 +23,12 @@ describe('partials', function() {
shouldCompileToWithPartials(string, [hash, {}, {dude: partial}], true, "Dudes: Empty");
});
+ it('partials with duplicate parameters', function() {
+ shouldThrow(function() {
+ CompilerContext.compile('Dudes: {{>dude dudes foo bar=baz}}');
+ }, Error, 'Unsupported number of partial arguments: 2 - 1:7');
+ });
+
it("partials with parameters", function() {
var string = "Dudes: {{#dudes}}{{> dude others=..}}{{/dudes}}";
var partial = "{{others.foo}}{{name}} ({{url}}) ";