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); const valueToTransfer = spenderInitialFungibleBalance.plus(1);
// create the expected error (a uint256 underflow) // create the expected error (a uint256 underflow)
const expectedError = new SafeMathRevertErrors.Uint256UnderflowError( const expectedError = new SafeMathRevertErrors.Uint256UnderflowError(
spenderInitialFungibleBalance, spenderInitialFungibleBalance,
valueToTransfer, valueToTransfer,
); );
// execute transfer // execute transfer
@ -185,7 +185,7 @@ describe('ERC1155Token', () => {
receiverCallbackData, receiverCallbackData,
{ from: spender }, { from: spender },
); );
expect(tx).to.revertWith(expectedError); return expect(tx).to.revertWith(expectedError);
}); });
it('should throw if callback reverts', async () => { it('should throw if callback reverts', async () => {
// setup test parameters // setup test parameters
@ -349,7 +349,7 @@ describe('ERC1155Token', () => {
// create the expected error (a uint256 underflow) // create the expected error (a uint256 underflow)
const expectedError = new SafeMathRevertErrors.Uint256UnderflowError( const expectedError = new SafeMathRevertErrors.Uint256UnderflowError(
spenderInitialFungibleBalance, spenderInitialFungibleBalance,
valuesToTransfer[0], valuesToTransfer[0],
); );
// execute transfer // execute transfer
@ -361,7 +361,7 @@ describe('ERC1155Token', () => {
receiverCallbackData, receiverCallbackData,
{ from: spender }, { from: spender },
); );
expect(tx).to.revertWith(expectedError); return expect(tx).to.revertWith(expectedError);
}); });
it('should throw if callback reverts', async () => { it('should throw if callback reverts', async () => {
// setup test parameters // setup test parameters

View File

@ -17,7 +17,7 @@ import {
} from '@0x/contracts-test-utils'; } from '@0x/contracts-test-utils';
import { BlockchainLifecycle } from '@0x/dev-utils'; import { BlockchainLifecycle } from '@0x/dev-utils';
import { assetDataUtils, ExchangeRevertErrors } from '@0x/order-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 { BigNumber, OwnableRevertErrors } from '@0x/utils';
import * as chai from 'chai'; import * as chai from 'chai';
import { LogWithDecodedArgs } from 'ethereum-types'; import { LogWithDecodedArgs } from 'ethereum-types';

View File

@ -3,7 +3,6 @@ import {
chaiSetup, chaiSetup,
constants, constants,
FillResults, FillResults,
getRevertReasonOrErrorMessageForSendTransactionAsync,
provider, provider,
testCombinatoriallyWithReferenceFuncAsync, testCombinatoriallyWithReferenceFuncAsync,
txDefaults, txDefaults,
@ -12,7 +11,7 @@ import {
} from '@0x/contracts-test-utils'; } from '@0x/contracts-test-utils';
import { BlockchainLifecycle } from '@0x/dev-utils'; import { BlockchainLifecycle } from '@0x/dev-utils';
import { Order, RevertReason, SignedOrder } from '@0x/types'; 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 chai from 'chai';
import * as _ from 'lodash'; import * as _ from 'lodash';