Skip to content

Commit

Permalink
Update connect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fragosti committed Sep 27, 2019
1 parent 8761502 commit a36a536
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"senderAddress": "0xa2b31dacf30a9c50ca473337c01d8a201ae33e32",
"feeRecipientAddress": "0xb046140686d052fff581f63f8136cce132e857da",
"makerFee": "100000000000000",
"takerFee": "200000000000000"
"takerFee": "200000000000000",
"makerFeeAssetData": "0xf47261b04c32345ced77393b3530b1eed0f346429d",
"takerFeeAssetData": "0xf47261b04c32345ced77393b3530b1eed0f346429d"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export const orderConfigResponse: OrderConfigResponse = {
feeRecipientAddress: '0xb046140686d052fff581f63f8136cce132e857da',
makerFee: new BigNumber('100000000000000'),
takerFee: new BigNumber('200000000000000'),
makerFeeAssetData: '0xf47261b04c32345ced77393b3530b1eed0f346429d',
takerFeeAssetData: '0xf47261b04c32345ced77393b3530b1eed0f346429d',
};
4 changes: 2 additions & 2 deletions packages/connect/test/http_client_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ describe('HttpClient', () => {
it('gets orderbook with default page options when none are provided', async () => {
const urlWithQuery = `${url}?baseAssetData=${request.baseAssetData}&quoteAssetData=${
request.quoteAssetData
}`;
}`;
fetchMock.get(urlWithQuery, orderbookJSON);
const orderbook = await relayerClient.getOrderbookAsync(request);
expect(orderbook).to.be.deep.equal(orderbookResponse);
});
it('gets orderbook with specified page options', async () => {
const urlWithQuery = `${url}?baseAssetData=${
request.baseAssetData
}&networkId=42&page=3&perPage=50&quoteAssetData=${request.quoteAssetData}`;
}&networkId=42&page=3&perPage=50&quoteAssetData=${request.quoteAssetData}`;
fetchMock.get(urlWithQuery, orderbookJSON);
const pagedRequestOptions = {
page: 3,
Expand Down

0 comments on commit a36a536

Please sign in to comment.