diff options
author | Martin Muñoz <im.mmun@gmail.com> | 2014-11-11 21:35:10 -0500 |
---|---|---|
committer | Martin Muñoz <im.mmun@gmail.com> | 2014-11-11 21:35:10 -0500 |
commit | b8a9f7264d3b6ac48514272bf35291736cedad00 (patch) | |
tree | 08fdbc4c7e73e63f98a136285cc7a9958bec719f /spec/compiler.js | |
parent | b3b5b358895566c04b3a9776ac81c5bcf245e27c (diff) | |
download | handlebars.js-b8a9f7264d3b6ac48514272bf35291736cedad00.zip handlebars.js-b8a9f7264d3b6ac48514272bf35291736cedad00.tar.gz handlebars.js-b8a9f7264d3b6ac48514272bf35291736cedad00.tar.bz2 |
Add parser support for block params
Diffstat (limited to 'spec/compiler.js')
-rw-r--r-- | spec/compiler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/compiler.js b/spec/compiler.js index 250dbc7..eead00b 100644 --- a/spec/compiler.js +++ b/spec/compiler.js @@ -41,7 +41,7 @@ describe('compiler', function() { }); it('can utilize AST instance', function() { - equal(Handlebars.compile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")], {}))(), 'Hello'); + equal(Handlebars.compile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")], null, {}))(), 'Hello'); }); it("can pass through an empty string", function() { @@ -60,7 +60,7 @@ describe('compiler', function() { }); it('can utilize AST instance', function() { - equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")]), {})), true); + equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")]), null, {})), true); }); it("can pass through an empty string", function() { |