diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-16 08:36:54 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-16 08:36:54 +0800 |
commit | 30dfb7511dc695b2dc7514c2908e632e0969ddfd (patch) | |
tree | 291c1273086e555ef4cb2bc372419bb7e8b57a2f /packages | |
parent | 1c87e5f69809954add5e76de520e8ef4f405c1c0 (diff) | |
download | dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.gz dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.bz2 dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.lz dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.xz dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.tar.zst dexon-sol-tools-30dfb7511dc695b2dc7514c2908e632e0969ddfd.zip |
All previous tests passing
Diffstat (limited to 'packages')
-rw-r--r-- | packages/connect/test/http_client_test.ts | 8 |
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); |