Ran yarn prettier
This commit is contained in:
committed by
Amir Bandeali
parent
b7adf59ed5
commit
03ea97734c
@@ -48,9 +48,7 @@ describe('Authorizable', () => {
|
||||
describe('addAuthorizedAddress', () => {
|
||||
it('should throw if not called by owner', async () => {
|
||||
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);
|
||||
});
|
||||
it('should allow owner to add an authorized address', async () => {
|
||||
@@ -83,9 +81,7 @@ describe('Authorizable', () => {
|
||||
constants.AWAIT_TRANSACTION_MINED_MS,
|
||||
);
|
||||
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);
|
||||
});
|
||||
|
||||
@@ -123,9 +119,9 @@ describe('Authorizable', () => {
|
||||
);
|
||||
const index = new BigNumber(0);
|
||||
const expectedError = new OwnableRevertErrors.OnlyOwnerError(notOwner, owner);
|
||||
const tx = authorizable.removeAuthorizedAddressAtIndex.sendTransactionAsync(
|
||||
address, index, { from: notOwner, }
|
||||
);
|
||||
const tx = authorizable.removeAuthorizedAddressAtIndex.sendTransactionAsync(address, index, {
|
||||
from: notOwner,
|
||||
});
|
||||
expect(tx).to.revertWith(expectedError);
|
||||
});
|
||||
it('should throw if index is >= authorities.length', async () => {
|
||||
|
@@ -1832,7 +1832,7 @@ describe('ERC1155Proxy', () => {
|
||||
const expectedInitialBalances = [spenderInitialFungibleBalance, receiverInitialFungibleBalance];
|
||||
await erc1155Wrapper.assertBalancesAsync(tokenHolders, tokensToTransfer, expectedInitialBalances);
|
||||
const expectedError = new SafeMathRevertErrors.Uint256UnderflowError(
|
||||
spenderInitialFungibleBalance,
|
||||
spenderInitialFungibleBalance,
|
||||
valuesToTransfer[0],
|
||||
);
|
||||
// execute transfer
|
||||
|
Reference in New Issue
Block a user