diff options
Diffstat (limited to 'spec/qunit_spec.js')
-rw-r--r-- | spec/qunit_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/qunit_spec.js b/spec/qunit_spec.js index cbd34c7..dcb7150 100644 --- a/spec/qunit_spec.js +++ b/spec/qunit_spec.js @@ -1262,3 +1262,9 @@ test("bug reported by @fat where lambdas weren't being properly resolved", funct var output = "<strong>This is a slightly more complicated blah.</strong>.\n\nCheck this out:\n\n<ul>\n\n<li class=one>@fat</li>\n\n<li class=two>@dhg</li>\n\n<li class=three>@sayrer</li>\n</ul>.\n\n"; shouldCompileTo(string, data, output); }); + +test("Passing falsy values to Handlebars.compile throws an error", function() { + shouldThrow(function() { + CompilerContext.compile(null); + }, "You must pass a string to Handlebars.compile. You passed null"); +}); |