diff options
author | kpdecker <kpdecker@gmail.com> | 2015-02-07 12:27:02 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-02-07 12:31:19 -0600 |
commit | 95421271e3badfcb340cda53434109feed44889a (patch) | |
tree | 33813f6483db26b78427d211794cb3204e50ebad /spec/builtins.js | |
parent | 752a28f24c202cce85068f9c07f6997babc5f6b1 (diff) | |
download | handlebars.js-95421271e3badfcb340cda53434109feed44889a.zip handlebars.js-95421271e3badfcb340cda53434109feed44889a.tar.gz handlebars.js-95421271e3badfcb340cda53434109feed44889a.tar.bz2 |
Change default log level to info
Eventually we want to fix this API so that you can provide per-instance levels, etc but for now this is a quick fix.
Fixes wycats/handlebars-site#91
Diffstat (limited to 'spec/builtins.js')
-rw-r--r-- | spec/builtins.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/builtins.js b/spec/builtins.js index e6af46b..8f20da1 100644 --- a/spec/builtins.js +++ b/spec/builtins.js @@ -276,15 +276,17 @@ describe('builtin helpers', function() { equals(3, levelArg); equals("whee", logArg); }); - it('should not output to console', function() { + it('should not output to info', function() { var string = "{{log blah}}"; var hash = { blah: "whee" }; - console.info = function() { - throw new Error(); + console.info = function(log) { + equals("whee", log); + called = true; }; - shouldCompileTo(string, hash, "", "log should not display"); + shouldCompileTo(string, hash, ""); + equals(true, called); }); it('should log at data level', function() { var string = "{{log blah}}"; |