Fixed any lingering style issues

This commit is contained in:
James Towle 2019-06-07 15:02:44 -07:00 committed by Amir Bandeali
parent 666b992c51
commit b7adf59ed5
3 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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';

View File

@ -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';