diff options
Diffstat (limited to 'spec/parser.js')
-rw-r--r-- | spec/parser.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/parser.js b/spec/parser.js index 424e2d1..82c32d0 100644 --- a/spec/parser.js +++ b/spec/parser.js @@ -228,7 +228,10 @@ describe('parser', function() { describe('externally compiled AST', function() { it('can pass through an already-compiled AST', function() { - equals(astFor(new Handlebars.AST.Program([new Handlebars.AST.ContentStatement('Hello')], null)), 'CONTENT[ \'Hello\' ]\n'); + equals(astFor({ + type: 'Program', + body: [ {type: 'ContentStatement', value: 'Hello'}] + }), 'CONTENT[ \'Hello\' ]\n'); }); }); |