Added a linting command for slower computers

This commit is contained in:
James Towle
2019-06-07 15:41:01 -07:00
committed by Amir Bandeali
parent 03ea97734c
commit 0ddb9f8923
3 changed files with 5 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ describe('Authorizable', () => {
it('should throw if not called by owner', async () => {
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
const tx = authorizable.addAuthorizedAddress.sendTransactionAsync(notOwner, { from: notOwner });
expect(tx).to.revertWith(expectedError);
return expect(tx).to.revertWith(expectedError);
});
it('should allow owner to add an authorized address', async () => {
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(
@@ -82,7 +82,7 @@ describe('Authorizable', () => {
);
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
const tx = authorizable.removeAuthorizedAddress.sendTransactionAsync(address, { from: notOwner });
expect(tx).to.revertWith(expectedError);
return expect(tx).to.revertWith(expectedError);
});
it('should allow owner to remove an authorized address', async () => {
@@ -122,7 +122,7 @@ describe('Authorizable', () => {
const tx = authorizable.removeAuthorizedAddressAtIndex.sendTransactionAsync(address, index, {
from: notOwner,
});
expect(tx).to.revertWith(expectedError);
return expect(tx).to.revertWith(expectedError);
});
it('should throw if index is >= authorities.length', async () => {
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(

View File

@@ -1846,7 +1846,7 @@ describe('ERC1155Proxy', () => {
receiverCallbackData,
authorized,
);
expect(tx).to.revertWith(expectedError);
return expect(tx).to.revertWith(expectedError);
});
it('should revert if sender allowance is insufficient', async () => {
// dremove allowance for ERC1155 proxy