aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/test
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-21 02:53:49 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-21 02:53:49 +0800
commit44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1 (patch)
tree97e962f71e58064411fdc11986d804c242340cbf /packages/connect/test
parent1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7 (diff)
downloaddexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar.gz
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar.bz2
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar.lz
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar.xz
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.tar.zst
dexon-sol-tools-44cc5e45cc3a3ed7db2691a287500e5d61a2d0c1.zip
Run prettier
Diffstat (limited to 'packages/connect/test')
-rw-r--r--packages/connect/test/fixtures/standard_relayer_api/fee_recipients.json2
-rw-r--r--packages/connect/test/fixtures/standard_relayer_api/orderbook.json2
-rw-r--r--packages/connect/test/fixtures/standard_relayer_api/orders.json1
-rw-r--r--packages/connect/test/http_client_test.ts6
-rw-r--r--packages/connect/test/orders_channel_factory_test.ts5
5 files changed, 6 insertions, 10 deletions
diff --git a/packages/connect/test/fixtures/standard_relayer_api/fee_recipients.json b/packages/connect/test/fixtures/standard_relayer_api/fee_recipients.json
index 47ce42412..b1d570b03 100644
--- a/packages/connect/test/fixtures/standard_relayer_api/fee_recipients.json
+++ b/packages/connect/test/fixtures/standard_relayer_api/fee_recipients.json
@@ -7,4 +7,4 @@
"0x9e56625509c2f60af937f23b7b532600390e8c8b",
"0xa2b31dacf30a9c50ca473337c01d8a201ae33e32"
]
-} \ No newline at end of file
+}
diff --git a/packages/connect/test/fixtures/standard_relayer_api/orderbook.json b/packages/connect/test/fixtures/standard_relayer_api/orderbook.json
index b14d12e57..5206c2217 100644
--- a/packages/connect/test/fixtures/standard_relayer_api/orderbook.json
+++ b/packages/connect/test/fixtures/standard_relayer_api/orderbook.json
@@ -51,4 +51,4 @@
}
]
}
-} \ No newline at end of file
+}
diff --git a/packages/connect/test/fixtures/standard_relayer_api/orders.json b/packages/connect/test/fixtures/standard_relayer_api/orders.json
index e4fb3a3dd..683612071 100644
--- a/packages/connect/test/fixtures/standard_relayer_api/orders.json
+++ b/packages/connect/test/fixtures/standard_relayer_api/orders.json
@@ -24,4 +24,3 @@
}
]
}
-
diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts
index 8b76c4c88..ad1654765 100644
--- a/packages/connect/test/http_client_test.ts
+++ b/packages/connect/test/http_client_test.ts
@@ -109,9 +109,9 @@ describe('HttpClient', () => {
};
const url = `${relayUrl}/orderbook`;
it('gets orderbook with default page options when none are provided', async () => {
- const urlWithQuery = `${url}?baseAssetData=${
- request.baseAssetData
- }&quoteAssetData=${request.quoteAssetData}`;
+ 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);
diff --git a/packages/connect/test/orders_channel_factory_test.ts b/packages/connect/test/orders_channel_factory_test.ts
index 58f7e08d9..e4c4ce32f 100644
--- a/packages/connect/test/orders_channel_factory_test.ts
+++ b/packages/connect/test/orders_channel_factory_test.ts
@@ -20,10 +20,7 @@ describe('ordersChannelFactory', () => {
it('throws when input is not a url', () => {
const badUrlInput = 54;
expect(
- ordersChannelFactory.createWebSocketOrdersChannelAsync(
- badUrlInput as any,
- emptyOrdersChannelHandler,
- ),
+ ordersChannelFactory.createWebSocketOrdersChannelAsync(badUrlInput as any, emptyOrdersChannelHandler),
).to.be.rejected();
});
it('throws when handler has the incorrect members', () => {