aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/test
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-15 06:43:43 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-15 06:43:43 +0800
commit95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6 (patch)
tree9fac722d0a4a80abbb0aae0c54b5f63874ddef2f /packages/connect/test
parentab1f070901bf6dc6ba39abc1e0dd67c3c342a174 (diff)
downloaddexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.gz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.bz2
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.lz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.xz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.zst
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.zip
Change default page params in connect to page 1 and perPage 100
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 93b252ace..311dc96e6 100644
--- a/packages/connect/test/http_client_test.ts
+++ b/packages/connect/test/http_client_test.ts
@@ -41,7 +41,7 @@ describe('HttpClient', () => {
describe('#getTokenPairsAsync', () => {
const url = `${relayUrl}/token_pairs`;
it('gets token pairs with default options when none are provided', async () => {
- const urlWithQuery = `${url}?page=0&per_page=100`;
+ const urlWithQuery = `${url}?page=1&per_page=100`;
fetchMock.get(urlWithQuery, tokenPairsResponseJSON);
const tokenPairs = await relayerClient.getTokenPairsAsync();
expect(tokenPairs).to.be.deep.equal(tokenPairsResponse);
@@ -66,7 +66,7 @@ describe('HttpClient', () => {
describe('#getOrdersAsync', () => {
const url = `${relayUrl}/orders`;
it('gets orders with default options when none are provided', async () => {
- const urlWithQuery = `${url}?page=0&per_page=100`;
+ const urlWithQuery = `${url}?page=1&per_page=100`;
fetchMock.get(urlWithQuery, ordersResponseJSON);
const orders = await relayerClient.getOrdersAsync();
expect(orders).to.be.deep.equal(ordersResponse);
@@ -110,7 +110,7 @@ describe('HttpClient', () => {
it('gets orderbook with default page options when none are provided', async () => {
const urlWithQuery = `${url}?baseTokenAddress=${
request.baseTokenAddress
- }&page=0&per_page=100&quoteTokenAddress=${request.quoteTokenAddress}`;
+ }&page=1&per_page=100&quoteTokenAddress=${request.quoteTokenAddress}`;
fetchMock.get(urlWithQuery, orderbookJSON);
const orderbook = await relayerClient.getOrderbookAsync(request);
expect(orderbook).to.be.deep.equal(orderbookResponse);