summaryrefslogtreecommitdiffstats
path: root/spec/compiler.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/compiler.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/compiler.js')
-rw-r--r--spec/compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/compiler.js b/spec/compiler.js
index eead00b..f9eba28 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")], null, {}))(), 'Hello');
+ equal(Handlebars.compile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement("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")]), null, {})), true);
+ equal(/return "Hello"/.test(Handlebars.precompile(new Handlebars.AST.Program([ new Handlebars.AST.ContentStatement("Hello")]), null, {})), true);
});
it("can pass through an empty string", function() {