diff options
author | Les Hill <leshill@gmail.com> | 2013-01-06 09:32:18 -0800 |
---|---|---|
committer | Les Hill <leshill@gmail.com> | 2013-01-06 09:32:18 -0800 |
commit | f4cad086bb70ef2a21bc92a5b102ec74db66e261 (patch) | |
tree | 6ecd25899ec024ff176103b8f9ef70116b3b7ce7 /spec/qunit_spec.js | |
parent | 51fd64c3341a37c18f0a301d5028fd07a07a1ce2 (diff) | |
download | handlebars.js-f4cad086bb70ef2a21bc92a5b102ec74db66e261.zip handlebars.js-f4cad086bb70ef2a21bc92a5b102ec74db66e261.tar.gz handlebars.js-f4cad086bb70ef2a21bc92a5b102ec74db66e261.tar.bz2 |
Fix spec for 8df8488
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index 5203cfc..88055bb 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -764,12 +764,13 @@ test("log", function() { var string = "{{log blah}}"; var hash = { blah: "whee" }; - var logArg; + var levelArg, logArg; var originalLog = Handlebars.log; - Handlebars.log = function(arg){ logArg = arg; }; + Handlebars.log = function(level, arg){ levelArg = level, logArg = arg; }; teardown = function(){ Handlebars.log = originalLog; }; shouldCompileTo(string, hash, "", "log should not display"); + equals(1, levelArg, "should call log with 1"); equals("whee", logArg, "should call log with 'whee'"); }); |