summaryrefslogtreecommitdiffstats
path: root/spec/env/common.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-11 19:43:29 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-11 20:08:29 -0500
commit905f99b18c7bb6bfe1cf1db3aee5e1e34c431372 (patch)
tree7e2dcfa23125e92abfadcfa9d0ed3bd3d21a5f20 /spec/env/common.js
parent5f1bf78555a12bc3ce5a2fb8967251692aed6209 (diff)
downloadhandlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.zip
handlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.tar.gz
handlebars.js-905f99b18c7bb6bfe1cf1db3aee5e1e34c431372.tar.bz2
Minor test cleanup
Diffstat (limited to 'spec/env/common.js')
-rw-r--r--spec/env/common.js4
1 files changed, 2 insertions, 2 deletions
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 : ''));
}
};