Skip to content

Commit

Permalink
jshint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Feb 9, 2014
1 parent fe3b4cc commit a9f76e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/builtins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*global CompilerContext, shouldCompileTo, compileWithPartials */
/*global CompilerContext, shouldCompileTo, compileWithPartials, handlebarsEnv */
describe('builtin helpers', function() {
describe('#if', function() {
it("if", function() {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit a9f76e1

Please sign in to comment.