Update invalid transaction test case

This commit is contained in:
MattFaus 2014-03-18 17:46:10 -07:00
parent 8a8ae5b357
commit 07f49195ea
1 changed files with 14 additions and 13 deletions

View File

@ -339,7 +339,8 @@ describe('Transaction', function() {
// ...by this function, so ignore if that is the case
if (err && err.constructor.name === "AssertionError") return;
should.exist(err);
// There should either be an error, or the results should be false.
(err !== null || (!err && results === false)).should.equal(true);
});
});
});