Permalink
Browse files

fix copy-n-paste error

  • Loading branch information...
1 parent 8131828 commit 6af5a211d2b47438aeca3ca55e9da9574d1885d4 @bronson committed Oct 2, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/valid.test.js
  2. +2 −2 test/validjson.test.js
View
@@ -25,12 +25,12 @@ if(Valid.equal(4).verify(4) !== undefined) throw "verify() success needs
var error;
try {
- Valid.equal(4).verify(5)
+ Valid.equal(4).verify(5);
} catch(e) {
error = e;
}
if(error === undefined) throw "verify() did not throw an error!";
-if(error !== "5 is not equal to 4") throw "verify() failure threw: " + err;
+if(error !== "5 is not equal to 4") throw "verify() failure threw: " + error;
// pathological cases
View
@@ -72,13 +72,13 @@ if(Valid.json({a:1}).verify({a:1}) !== undefined) throw "verify() success needs
var error;
try {
- Valid.json({a:1}).verify({a:2})
+ Valid.json({a:1}).verify({a:2});
} catch(e) {
error = e;
}
if(error === undefined) throw "verify() did not throw an error!";
result = DeepCompare(error, {'a': {value: 2, message: 'does not equal 1'}});
-if(result !== undefined) { throw "verify() failure: " + result }
+if(result !== undefined) { throw "verify() failure: " + result; }
// now ensure Valid.json works

0 comments on commit 6af5a21

Please sign in to comment.