diff options
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'"); }); |