summaryrefslogtreecommitdiffstats
path: root/spec/qunit_spec.js
diff options
context:
space:
mode:
authortomhuda <tomhuda@tilde.io>2013-01-18 15:37:09 -0800
committertomhuda <tomhuda@tilde.io>2013-01-18 15:37:09 -0800
commitcd9895061bebd8342c344c3b846651b80145e2bf (patch)
treed27575c4b0f709f0f66a4da97d4e626f37cacfa3 /spec/qunit_spec.js
parentccd6a22ea5b89afef77651517b8d0b57e5920ea1 (diff)
downloadhandlebars.js-cd9895061bebd8342c344c3b846651b80145e2bf.zip
handlebars.js-cd9895061bebd8342c344c3b846651b80145e2bf.tar.gz
handlebars.js-cd9895061bebd8342c344c3b846651b80145e2bf.tar.bz2
Must pop the stack extra for hashes
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r--spec/qunit_spec.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js
index d1efab3..6bc5a43 100644
--- a/spec/qunit_spec.js
+++ b/spec/qunit_spec.js
@@ -1213,10 +1213,13 @@ test("in string mode, information about the types is passed along", function() {
});
test("in string mode, hash parameters get type information", function() {
- var template = CompilerContext.compile('{{tomdale desire="need" noun=dad.joke bool=true}}', { stringParams: true });
+ var template = CompilerContext.compile('{{tomdale he.says desire="need" noun=dad.joke bool=true}}', { stringParams: true });
var helpers = {
- tomdale: function(options) {
+ tomdale: function(exclamation, options) {
+ equal(exclamation, "he.says");
+ equal(options.types[0], "ID");
+
equal(options.hashTypes.desire, "STRING");
equal(options.hashTypes.noun, "ID");
equal(options.hashTypes.bool, "BOOLEAN");