aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-16 08:36:54 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-16 08:36:54 +0800
commit30dfb7511dc695b2dc7514c2908e632e0969ddfd (patch)
tree291c1273086e555ef4cb2bc372419bb7e8b57a2f /packages
parent1c87e5f69809954add5e76de520e8ef4f405c1c0 (diff)
downloaddexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.gz
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.bz2
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.lz
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.xz
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.zst
dexon-0x-contracts-30dfb7511dc695b2dc7514c2908e632e0969ddfd.zip
All previous tests passing
Diffstat (limited to 'packages')
-rw-r--r--packages/connect/test/http_client_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts
index 7a1781131..6d5ab288a 100644
--- a/packages/connect/test/http_client_test.ts
+++ b/packages/connect/test/http_client_test.ts
@@ -143,7 +143,7 @@ describe('HttpClient', () => {
takerAssetData: '0x0257179264389b814a946f3e92105513705ca6b990',
exchangeAddress: '0x12459c951127e0c374ff9105dda097662a027093',
};
- const url = `${relayUrl}/fees`;
+ const url = `${relayUrl}/order_config`;
it('gets fees', async () => {
fetchMock.post(url, orderConfigResponseJSON);
const fees = await relayerClient.getOrderConfigAsync(request);
@@ -151,9 +151,9 @@ describe('HttpClient', () => {
});
it('does not mutate input', async () => {
fetchMock.post(url, orderConfigResponseJSON);
- const makerAssetAmountBefore = new BigNumber(request.makerAssetAmount);
- const takerAssetAmountBefore = new BigNumber(request.takerAssetAmount);
- const expirationTimeSecondsBefore = new BigNumber(request.expirationTimeSeconds);
+ const makerAssetAmountBefore = request.makerAssetAmount;
+ const takerAssetAmountBefore = request.takerAssetAmount;
+ const expirationTimeSecondsBefore = request.expirationTimeSeconds;
await relayerClient.getOrderConfigAsync(request);
expect(makerAssetAmountBefore).to.be.deep.equal(request.makerAssetAmount);
expect(takerAssetAmountBefore).to.be.deep.equal(request.takerAssetAmount);