Fixed any lingering style issues
This commit is contained in:
parent
666b992c51
commit
b7adf59ed5
@ -173,7 +173,7 @@ describe('ERC1155Token', () => {
|
||||
const valueToTransfer = spenderInitialFungibleBalance.plus(1);
|
||||
// create the expected error (a uint256 underflow)
|
||||
const expectedError = new SafeMathRevertErrors.Uint256UnderflowError(
|
||||
spenderInitialFungibleBalance,
|
||||
spenderInitialFungibleBalance,
|
||||
valueToTransfer,
|
||||
);
|
||||
// execute transfer
|
||||
@ -185,7 +185,7 @@ describe('ERC1155Token', () => {
|
||||
receiverCallbackData,
|
||||
{ from: spender },
|
||||
);
|
||||
expect(tx).to.revertWith(expectedError);
|
||||
return expect(tx).to.revertWith(expectedError);
|
||||
});
|
||||
it('should throw if callback reverts', async () => {
|
||||
// setup test parameters
|
||||
@ -349,7 +349,7 @@ describe('ERC1155Token', () => {
|
||||
|
||||
// create the expected error (a uint256 underflow)
|
||||
const expectedError = new SafeMathRevertErrors.Uint256UnderflowError(
|
||||
spenderInitialFungibleBalance,
|
||||
spenderInitialFungibleBalance,
|
||||
valuesToTransfer[0],
|
||||
);
|
||||
// execute transfer
|
||||
@ -361,7 +361,7 @@ describe('ERC1155Token', () => {
|
||||
receiverCallbackData,
|
||||
{ from: spender },
|
||||
);
|
||||
expect(tx).to.revertWith(expectedError);
|
||||
return expect(tx).to.revertWith(expectedError);
|
||||
});
|
||||
it('should throw if callback reverts', async () => {
|
||||
// setup test parameters
|
||||
|
@ -17,7 +17,7 @@ import {
|
||||
} from '@0x/contracts-test-utils';
|
||||
import { BlockchainLifecycle } from '@0x/dev-utils';
|
||||
import { assetDataUtils, ExchangeRevertErrors } from '@0x/order-utils';
|
||||
import { AssetProxyId, RevertReason } from '@0x/types';
|
||||
import { AssetProxyId } from '@0x/types';
|
||||
import { BigNumber, OwnableRevertErrors } from '@0x/utils';
|
||||
import * as chai from 'chai';
|
||||
import { LogWithDecodedArgs } from 'ethereum-types';
|
||||
|
@ -3,7 +3,6 @@ import {
|
||||
chaiSetup,
|
||||
constants,
|
||||
FillResults,
|
||||
getRevertReasonOrErrorMessageForSendTransactionAsync,
|
||||
provider,
|
||||
testCombinatoriallyWithReferenceFuncAsync,
|
||||
txDefaults,
|
||||
@ -12,7 +11,7 @@ import {
|
||||
} from '@0x/contracts-test-utils';
|
||||
import { BlockchainLifecycle } from '@0x/dev-utils';
|
||||
import { Order, RevertReason, SignedOrder } from '@0x/types';
|
||||
import { BigNumber, SafeMathRevertErrors, providerUtils } from '@0x/utils';
|
||||
import { BigNumber, providerUtils, SafeMathRevertErrors } from '@0x/utils';
|
||||
import * as chai from 'chai';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user