aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/test
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-14 07:36:51 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-14 07:50:28 +0800
commit4c797405ad3c96387e6edc33a14c23d65ea2b596 (patch)
treeff1493fcb371e5c3c20f95efc15a78cead5cc1bf /packages/connect/test
parent713c922e351b284a4a17cde4899b133bfe939c4d (diff)
downloaddexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar.gz
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar.bz2
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar.lz
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar.xz
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.tar.zst
dexon-sol-tools-4c797405ad3c96387e6edc33a14c23d65ea2b596.zip
Addressed PR feedback
Diffstat (limited to 'packages/connect/test')
-rw-r--r--packages/connect/test/http_client_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts
index 62a159628..93b252ace 100644
--- a/packages/connect/test/http_client_test.ts
+++ b/packages/connect/test/http_client_test.ts
@@ -51,7 +51,7 @@ describe('HttpClient', () => {
const tokenPairsRequestOpts = {
tokenA: tokenAddress,
page: 3,
- per_page: 50,
+ perPage: 50,
};
const urlWithQuery = `${url}?page=3&per_page=50&tokenA=${tokenAddress}`;
fetchMock.get(urlWithQuery, tokenPairsResponseJSON);
@@ -76,7 +76,7 @@ describe('HttpClient', () => {
const ordersRequest = {
tokenAddress,
page: 3,
- per_page: 50,
+ perPage: 50,
};
const urlWithQuery = `${url}?page=3&per_page=50&tokenAddress=${tokenAddress}`;
fetchMock.get(urlWithQuery, ordersResponseJSON);
@@ -122,7 +122,7 @@ describe('HttpClient', () => {
fetchMock.get(urlWithQuery, orderbookJSON);
const pagedRequestOptions = {
page: 3,
- per_page: 50,
+ perPage: 50,
};
const orderbook = await relayerClient.getOrderbookAsync(request, pagedRequestOptions);
expect(orderbook).to.be.deep.equal(orderbookResponse);