Make test cases that use assertJump fail if they dont fail

This commit is contained in:
Jorge Izquierdo
2017-01-23 19:18:41 +01:00
parent ad833fb40d
commit 2f0471fff2
4 changed files with 16 additions and 8 deletions

View File

@ -25,8 +25,9 @@ contract('BasicToken', function(accounts) {
try {
let transfer = await token.transfer(accounts[1], 101);
} catch(error) {
assertJump(error);
return assertJump(error);
}
assert.fail('should have thrown before');
});
});