diff options
Diffstat (limited to 'spec/partials.js')
-rw-r--r-- | spec/partials.js | 6 |
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}}) "; |