diff options
Diffstat (limited to 'spec/builtins.js')
-rw-r--r-- | spec/builtins.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/builtins.js b/spec/builtins.js index 6d9fa0b..53f46cc 100644 --- a/spec/builtins.js +++ b/spec/builtins.js @@ -1,4 +1,4 @@ -/*global CompilerContext, shouldCompileTo, compileWithPartials */ +/*global CompilerContext, shouldCompileTo, compileWithPartials, handlebarsEnv */ describe('builtin helpers', function() { describe('#if', function() { it("if", function() { @@ -189,12 +189,14 @@ describe('builtin helpers', function() { }); it("#log", function() { - var string = "{{log blah}}"; var hash = { blah: "whee" }; var levelArg, logArg; - handlebarsEnv.log = function(level, arg){ levelArg = level, logArg = arg; }; + handlebarsEnv.log = function(level, arg){ + levelArg = level; + logArg = arg; + }; shouldCompileTo(string, hash, "", "log should not display"); equals(1, levelArg, "should call log with 1"); |