summaryrefslogtreecommitdiffstats
path: root/spec/ast.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-07-13 07:24:52 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-12 14:41:58 -0500
commit60701790099d3c4b30c32d498b05c46fa323df30 (patch)
tree0edb2f46fbd9aa0016b3d6b61721a9db7ce92974 /spec/ast.js
parent4a4dcf16578f28bff42d755da5ece94188f75ba5 (diff)
downloadhandlebars.js-60701790099d3c4b30c32d498b05c46fa323df30.zip
handlebars.js-60701790099d3c4b30c32d498b05c46fa323df30.tar.gz
handlebars.js-60701790099d3c4b30c32d498b05c46fa323df30.tar.bz2
Track root status in ProgramNode constructor
Diffstat (limited to 'spec/ast.js')
-rw-r--r--spec/ast.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ast.js b/spec/ast.js
index c05e45c..cad4b30 100644
--- a/spec/ast.js
+++ b/spec/ast.js
@@ -86,7 +86,7 @@ describe('ast', function() {
var sexprNode = new handlebarsEnv.AST.SexprNode([{ original: 'foo'}], null);
var mustacheNode = new handlebarsEnv.AST.MustacheNode(sexprNode, null, '{{', {});
var block = new handlebarsEnv.AST.BlockNode(mustacheNode,
- {strip: {}}, {strip: {}},
+ {statements: [], strip: {}}, {statements: [], strip: {}},
{
strip: {},
path: {original: 'foo'}
@@ -201,12 +201,12 @@ describe('ast', function() {
describe("storing location info", function(){
it("stores when `inverse` argument isn't passed", function(){
- var pn = new handlebarsEnv.AST.ProgramNode([], LOCATION_INFO);
+ var pn = new handlebarsEnv.AST.ProgramNode(false, [], LOCATION_INFO);
testLocationInfoStorage(pn);
});
it("stores when `inverse` or `stripInverse` arguments passed", function(){
- var pn = new handlebarsEnv.AST.ProgramNode([], {strip: {}}, undefined, LOCATION_INFO);
+ var pn = new handlebarsEnv.AST.ProgramNode(false, [], {strip: {}}, undefined, LOCATION_INFO);
testLocationInfoStorage(pn);
var clone = {
@@ -216,7 +216,7 @@ describe('ast', function() {
firstColumn: 0,
lastColumn: 0
};
- pn = new handlebarsEnv.AST.ProgramNode([], {strip: {}}, [ clone ], LOCATION_INFO);
+ pn = new handlebarsEnv.AST.ProgramNode(false, [], {strip: {}}, [ clone ], LOCATION_INFO);
testLocationInfoStorage(pn);
// Assert that the newly created ProgramNode has the same location