diff options
author | kpdecker <kpdecker@gmail.com> | 2013-01-13 13:22:44 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-01-13 13:22:44 -0600 |
commit | 7a3641df5acc1362845ccadd57e29eb2965a0771 (patch) | |
tree | 658fecaca75ffba2a192a0811af117df6e9a0b77 /spec/qunit_spec.js | |
parent | b3f954b0afeba54be566370407ab119192e3472d (diff) | |
download | handlebars.js-7a3641df5acc1362845ccadd57e29eb2965a0771.zip handlebars.js-7a3641df5acc1362845ccadd57e29eb2965a0771.tar.gz handlebars.js-7a3641df5acc1362845ccadd57e29eb2965a0771.tar.bz2 |
Cleanup tests
jshint and fixup arg passing
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 88055bb..1e859e5 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -213,7 +213,7 @@ test("this keyword in paths", function() { }); test("this keyword in helpers", function() { - var helpers = {foo: function(value, options) { + var helpers = {foo: function(value) { return 'bar ' + value; }}; var string = "{{#goodbyes}}{{foo this}}{{/goodbyes}}"; @@ -753,7 +753,7 @@ test("data passed to helpers", function() { exclaim: '!' } }); - equal(result, 'a!b!c!'); + equal(result, 'a!b!c!', 'should output data'); }); Handlebars.registerHelper('detectDataInsideEach', function(options) { @@ -1148,7 +1148,7 @@ test("arguments to helpers can be retrieved from options hash in string form", f var template = CompilerContext.compile('{{wycats is.a slave.driver}}', {stringParams: true}); var helpers = { - wycats: function(passiveVoice, noun, options) { + wycats: function(passiveVoice, noun) { return "HELP ME MY BOSS " + passiveVoice + ' ' + noun; } }; |