fix testing error throwing

This commit is contained in:
Jakub Wojciechowski
2017-07-22 11:45:56 +01:00
parent 4d91118dd9
commit 5e7847537a
4 changed files with 45 additions and 37 deletions

View File

@ -27,8 +27,9 @@ contract('Claimable', function(accounts) {
try {
await claimable.claimOwnership({from: accounts[2]});
} catch(error) {
assertJump(error);
return assertJump(error);
}
assert.fail('should have thrown before');
});
it('should prevent non-owners from transfering', async function() {
@ -38,8 +39,9 @@ contract('Claimable', function(accounts) {
try {
await claimable.transferOwnership(other, {from: other});
} catch(error) {
assertJump(error);
return assertJump(error);
}
assert.fail('should have thrown before');
});
describe('after initiating a transfer', function () {