summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-02-09 17:21:49 -0600
committerkpdecker <kpdecker@gmail.com>2014-02-09 17:21:49 -0600
commita9f76e1475e4b74572bbdf6abc07ba7893bf349e (patch)
tree2a6b75373717e9001210295ba4545d1b4b2063ba
parentfe3b4cc98ed2f107325e1be25a86edfa783af0aa (diff)
downloadhandlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.zip
handlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.tar.gz
handlebars.js-a9f76e1475e4b74572bbdf6abc07ba7893bf349e.tar.bz2
jshint changes
-rw-r--r--spec/builtins.js8
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");