Ran prettier

This commit is contained in:
James Towle
2019-07-03 01:46:15 -05:00
committed by Amir Bandeali
parent 5a64759c83
commit 63bd1a4a22

View File

@@ -11,7 +11,15 @@ import {
import { ERC1155Contract as ERC1155TokenContract, Erc1155Wrapper as ERC1155Wrapper } from '@0x/contracts-erc1155';
import { DummyERC20TokenContract } from '@0x/contracts-erc20';
import { DummyERC721TokenContract } from '@0x/contracts-erc721';
import { chaiSetup, constants, OrderFactory, orderUtils, provider, txDefaults, web3Wrapper } from '@0x/contracts-test-utils';
import {
chaiSetup,
constants,
OrderFactory,
orderUtils,
provider,
txDefaults,
web3Wrapper,
} from '@0x/contracts-test-utils';
import { BlockchainLifecycle } from '@0x/dev-utils';
import { assetDataUtils, ExchangeRevertErrors, orderHashUtils } from '@0x/order-utils';
import { OrderStatus, SignedOrder } from '@0x/types';
@@ -2165,7 +2173,9 @@ describe('matchOrders', () => {
feeRecipientAddress: feeRecipientAddressRight,
}),
];
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(ExchangeRevertErrors.BatchMatchOrdersErrorCodes.ZeroLeftOrders);
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(
ExchangeRevertErrors.BatchMatchOrdersErrorCodes.ZeroLeftOrders,
);
const tx = exchangeWrapper.batchMatchOrdersAsync(leftOrders, rightOrders, takerAddress);
return expect(tx).to.revertWith(expectedError);
});
@@ -2179,7 +2189,9 @@ describe('matchOrders', () => {
}),
];
const rightOrders: SignedOrder[] = [];
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(ExchangeRevertErrors.BatchMatchOrdersErrorCodes.ZeroRightOrders);
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(
ExchangeRevertErrors.BatchMatchOrdersErrorCodes.ZeroRightOrders,
);
const tx = exchangeWrapper.batchMatchOrdersAsync(leftOrders, rightOrders, takerAddress);
return expect(tx).to.revertWith(expectedError);
});
@@ -2215,7 +2227,9 @@ describe('matchOrders', () => {
const params = orderUtils.createBatchMatchOrders(leftOrders, rightOrders);
// Set params left signatures to only include the first left signature
params.leftSignatures = [params.leftSignatures[0]];
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(ExchangeRevertErrors.BatchMatchOrdersErrorCodes.IncompatibleLeftOrders);
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(
ExchangeRevertErrors.BatchMatchOrdersErrorCodes.IncompatibleLeftOrders,
);
const tx = exchangeWrapper.batchMatchOrdersRawAsync(params, takerAddress);
return expect(tx).to.revertWith(expectedError);
});
@@ -2251,7 +2265,9 @@ describe('matchOrders', () => {
const params = orderUtils.createBatchMatchOrders(leftOrders, rightOrders);
// Set params right signatures to only include the first right signature
params.rightSignatures = [params.rightSignatures[0]];
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(ExchangeRevertErrors.BatchMatchOrdersErrorCodes.IncompatibleRightOrders);
const expectedError = new ExchangeRevertErrors.BatchMatchOrdersError(
ExchangeRevertErrors.BatchMatchOrdersErrorCodes.IncompatibleRightOrders,
);
const tx = exchangeWrapper.batchMatchOrdersRawAsync(params, takerAddress);
return expect(tx).to.revertWith(expectedError);
});