summaryrefslogtreecommitdiffstats
path: root/spec/ast.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-08-03 17:28:05 -0500
committerkpdecker <kpdecker@gmail.com>2015-08-03 17:49:47 -0500
commit324d61572655e251ad2b06032a04cfab09bb0076 (patch)
treebb9a92f45c6b383f05700ce840f1119eb51e2334 /spec/ast.js
parentc3cbaa25a48d1a0c52ead31bfab28cb803cace1f (diff)
downloadhandlebars.js-324d61572655e251ad2b06032a04cfab09bb0076.zip
handlebars.js-324d61572655e251ad2b06032a04cfab09bb0076.tar.gz
handlebars.js-324d61572655e251ad2b06032a04cfab09bb0076.tar.bz2
Enforce 100% code coverage
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;