Added a linting command for slower computers
This commit is contained in:
committed by
Amir Bandeali
parent
03ea97734c
commit
0ddb9f8923
@@ -49,7 +49,7 @@ describe('Authorizable', () => {
|
|||||||
it('should throw if not called by owner', async () => {
|
it('should throw if not called by owner', async () => {
|
||||||
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
|
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
|
||||||
const tx = authorizable.addAuthorizedAddress.sendTransactionAsync(notOwner, { from: notOwner });
|
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 () => {
|
it('should allow owner to add an authorized address', async () => {
|
||||||
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(
|
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(
|
||||||
@@ -82,7 +82,7 @@ describe('Authorizable', () => {
|
|||||||
);
|
);
|
||||||
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
|
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
|
||||||
const tx = authorizable.removeAuthorizedAddress.sendTransactionAsync(address, { from: notOwner });
|
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 () => {
|
it('should allow owner to remove an authorized address', async () => {
|
||||||
@@ -122,7 +122,7 @@ describe('Authorizable', () => {
|
|||||||
const tx = authorizable.removeAuthorizedAddressAtIndex.sendTransactionAsync(address, index, {
|
const tx = authorizable.removeAuthorizedAddressAtIndex.sendTransactionAsync(address, index, {
|
||||||
from: notOwner,
|
from: notOwner,
|
||||||
});
|
});
|
||||||
expect(tx).to.revertWith(expectedError);
|
return expect(tx).to.revertWith(expectedError);
|
||||||
});
|
});
|
||||||
it('should throw if index is >= authorities.length', async () => {
|
it('should throw if index is >= authorities.length', async () => {
|
||||||
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(
|
await authorizable.addAuthorizedAddress.awaitTransactionSuccessAsync(
|
||||||
|
|||||||
@@ -1846,7 +1846,7 @@ describe('ERC1155Proxy', () => {
|
|||||||
receiverCallbackData,
|
receiverCallbackData,
|
||||||
authorized,
|
authorized,
|
||||||
);
|
);
|
||||||
expect(tx).to.revertWith(expectedError);
|
return expect(tx).to.revertWith(expectedError);
|
||||||
});
|
});
|
||||||
it('should revert if sender allowance is insufficient', async () => {
|
it('should revert if sender allowance is insufficient', async () => {
|
||||||
// dremove allowance for ERC1155 proxy
|
// dremove allowance for ERC1155 proxy
|
||||||
|
|||||||
@@ -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;",
|
"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",
|
"bundlewatch": "bundlewatch",
|
||||||
"lint": "wsrun lint $PKG --fast-exit --parallel --exclude-missing",
|
"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"
|
"lint:contracts": "wsrun lint -p ${npm_package_config_contractsPackages} -c --fast-exit --stages --exclude-missing"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
|||||||
Reference in New Issue
Block a user