summaryrefslogtreecommitdiffstats
path: root/spec/ast.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ast.js')
-rw-r--r--spec/ast.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ast.js b/spec/ast.js
index ce4c090..627554c 100644
--- a/spec/ast.js
+++ b/spec/ast.js
@@ -100,6 +100,10 @@ describe('ast', function() {
});
describe('PartialStatement', function() {
+ it('provides default params', function() {
+ var pn = new handlebarsEnv.AST.PartialStatement('so_partial', undefined, {}, {}, LOCATION_INFO);
+ equals(pn.params.length, 0);
+ });
it('stores location info', function() {
var pn = new handlebarsEnv.AST.PartialStatement('so_partial', [], {}, {}, LOCATION_INFO);
testLocationInfoStorage(pn);
@@ -113,6 +117,13 @@ describe('ast', function() {
});
});
+ describe('SubExpression', function() {
+ it('provides default params', function() {
+ var pn = new handlebarsEnv.AST.SubExpression('path', undefined, {}, LOCATION_INFO);
+ equals(pn.params.length, 0);
+ });
+ });
+
describe('Line Numbers', function() {
var ast, body;