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

View File

@@ -46,6 +46,7 @@
"test:generate_docs:circleci": "for i in ${npm_package_config_packagesWithDocPages}; do yarn generate_doc --package $i --shouldUpload false --isStaging true || break -1; done;",
"bundlewatch": "bundlewatch",
"lint": "wsrun lint $PKG --fast-exit --parallel --exclude-missing",
"lint:stages": "wsrun lint $PKG --fast-exit --stages --exclude-missing",
"lint:contracts": "wsrun lint -p ${npm_package_config_contractsPackages} -c --fast-exit --stages --exclude-missing"
},
"config": {