diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-23 16:29:22 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-23 16:29:22 -0500 |
commit | 529e2b67960dba2e41122fc4d56b5c2af5ada9a5 (patch) | |
tree | 9b4af5981298bccc8e90d57b66773da7b7a1543f /spec/compiler.js | |
parent | 3531e041174509c6c3c69417b1714dcda6bccb3e (diff) | |
parent | eee2c4d4f29e233280907bc89a32556de66fe783 (diff) | |
download | handlebars.js-529e2b67960dba2e41122fc4d56b5c2af5ada9a5.zip handlebars.js-529e2b67960dba2e41122fc4d56b5c2af5ada9a5.tar.gz handlebars.js-529e2b67960dba2e41122fc4d56b5c2af5ada9a5.tar.bz2 |
Merge branch 'refactor-parser' of github.com:mmun/handlebars.js into mmun-refactor-parser
Conflicts:
lib/handlebars/compiler/ast.js
spec/ast.js
src/handlebars.yy
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 fa7635e..250dbc7 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(true, [ new Handlebars.AST.ContentNode("Hello")]))(), 'Hello'); + equal(Handlebars.compile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")], {}))(), '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(true, [ new Handlebars.AST.ContentNode("Hello")]))), true); + equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.ProgramNode([ new Handlebars.AST.ContentNode("Hello")]), {})), true); }); it("can pass through an empty string", function() { |