Change all instances of throw to revert in it tests

This commit is contained in:
Alex Towle
2019-08-01 15:10:06 -07:00
parent 77feaec444
commit 8c5c81fe70
15 changed files with 80 additions and 80 deletions

View File

@@ -30,7 +30,7 @@ describe('Ownable', () => {
});
describe('onlyOwner', () => {
it('should throw if sender is not the owner', async () => {
it('should revert if sender is not the owner', async () => {
const expectedError = new OwnableRevertErrors.OnlyOwnerError(nonOwner, owner);
return expect(ownable.externalOnlyOwner.callAsync({ from: nonOwner })).to.revertWith(expectedError);
});