Make test cases that use assertJump fail if they dont fail
This commit is contained in:
@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user