aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/test
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-01-10 06:19:33 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-01-10 06:19:33 +0800
commiteb760aa33f0e158b3d26058aa1e9906a1f400a14 (patch)
tree864f5b616e9efb38b0282ab829871f794df0b0cd /packages/connect/test
parent262c34abac6a42edf7b6f3c463c9473740281296 (diff)
downloaddexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar.gz
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar.bz2
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar.lz
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar.xz
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.tar.zst
dexon-sol-tools-eb760aa33f0e158b3d26058aa1e9906a1f400a14.zip
Prettier
Diffstat (limited to 'packages/connect/test')
-rw-r--r--packages/connect/test/orderbook_channel_message_parsers_test.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/connect/test/orderbook_channel_message_parsers_test.ts b/packages/connect/test/orderbook_channel_message_parsers_test.ts
index cd7cdff12..3e1f44384 100644
--- a/packages/connect/test/orderbook_channel_message_parsers_test.ts
+++ b/packages/connect/test/orderbook_channel_message_parsers_test.ts
@@ -57,15 +57,14 @@ describe('orderbookChannelMessageParser', () => {
expect(badCall).throws('Expected type to be of type string, encountered: 1');
});
it('throws when snapshot message has malformed payload', () => {
- const badCall = () =>
- orderbookChannelMessageParser.parse(malformedSnapshotOrderbookChannelMessage);
+ const badCall = () => orderbookChannelMessageParser.parse(malformedSnapshotOrderbookChannelMessage);
// tslint:disable-next-line:max-line-length
- const errMsg = 'Validation errors: instance.payload requires property "bids", instance.payload requires property "asks"';
+ const errMsg =
+ 'Validation errors: instance.payload requires property "bids", instance.payload requires property "asks"';
expect(badCall).throws(errMsg);
});
it('throws when update message has malformed payload', () => {
- const badCall = () =>
- orderbookChannelMessageParser.parse(malformedUpdateOrderbookChannelMessage);
+ const badCall = () => orderbookChannelMessageParser.parse(malformedUpdateOrderbookChannelMessage);
expect(badCall).throws(/^Expected message to conform to schema/);
});
it('throws when input message is not valid JSON', () => {