diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-11 19:43:29 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-11 20:08:29 -0500 |
commit | 905f99b18c7bb6bfe1cf1db3aee5e1e34c431372 (patch) | |
tree | 7e2dcfa23125e92abfadcfa9d0ed3bd3d21a5f20 | |
parent | 5f1bf78555a12bc3ce5a2fb8967251692aed6209 (diff) | |
download | handlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.zip handlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.tar.gz handlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.tar.bz2 |
Minor test cleanup
-rw-r--r-- | spec/blocks.js | 2 | ||||
-rw-r--r-- | spec/env/common.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/blocks.js b/spec/blocks.js index 8f7c242..718d316 100644 --- a/spec/blocks.js +++ b/spec/blocks.js @@ -1,4 +1,4 @@ -/*global CompilerContext, shouldCompileTo */ +/*global CompilerContext, shouldCompileTo, shouldThrow */ describe('blocks', function() { it("array", function() { var string = "{{#goodbyes}}{{text}}! {{/goodbyes}}cruel {{world}}!"; diff --git a/spec/env/common.js b/spec/env/common.js index 53bf977..45687ba 100644 --- a/spec/env/common.js +++ b/spec/env/common.js @@ -5,7 +5,7 @@ global.shouldCompileTo = function(string, hashOrArray, expected, message) { global.shouldCompileToWithPartials = function(string, hashOrArray, partials, expected, message) { var result = compileWithPartials(string, hashOrArray, partials); if (result !== expected) { - throw new Error("'" + expected + "' should === '" + result + "': " + message); + throw new Error("'" + result + "' should === '" + expected + "': " + message); } }; @@ -25,7 +25,7 @@ global.compileWithPartials = function(string, hashOrArray, partials) { global.equals = global.equal = function(a, b, msg) { if (a !== b) { - throw new Error("'" + b + "' should === '" + a + "'" + (msg ? ": " + msg : '')); + throw new Error("'" + a + "' should === '" + b + "'" + (msg ? ": " + msg : '')); } }; |