diff options
author | kpdecker <kpdecker@gmail.com> | 2014-02-09 17:21:49 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-02-09 17:21:49 -0600 |
commit | a9f76e1475e4b74572bbdf6abc07ba7893bf349e (patch) | |
tree | 2a6b75373717e9001210295ba4545d1b4b2063ba | |
parent | fe3b4cc98ed2f107325e1be25a86edfa783af0aa (diff) | |
download | handlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.zip handlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.tar.gz handlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.tar.bz2 |
jshint changes
-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"); |