diff options
author | Jacob Evans <jacob@dekz.net> | 2018-08-15 11:03:31 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-08-16 09:12:35 +0800 |
commit | 88c99396a2d1b880bffb21ef19507d02b474ba9b (patch) | |
tree | 8b8b72f1945a7d85f11af14f16338a059cc9f900 /packages/order-watcher/test | |
parent | 622509c508272790e3e69c09cf1a1f9696815147 (diff) | |
download | dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.gz dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.bz2 dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.lz dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.xz dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.zst dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.zip |
Rename OrderAlreadyCancelledOrFilled -> OrderCancelled.
Remove try catch of throwing errors in favour of returning the Errors in a OrderValidationResult
Diffstat (limited to 'packages/order-watcher/test')
-rw-r--r-- | packages/order-watcher/test/order_watcher_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-watcher/test/order_watcher_test.ts b/packages/order-watcher/test/order_watcher_test.ts index 0f4caeb63..38bfde7ef 100644 --- a/packages/order-watcher/test/order_watcher_test.ts +++ b/packages/order-watcher/test/order_watcher_test.ts @@ -501,7 +501,7 @@ describe('OrderWatcher', () => { expect(orderState.isValid).to.be.false(); const invalidOrderState = orderState as OrderStateInvalid; expect(invalidOrderState.orderHash).to.be.equal(orderHash); - expect(invalidOrderState.error).to.be.equal(ExchangeContractErrs.OrderAlreadyCancelledOrFilled); + expect(invalidOrderState.error).to.be.equal(ExchangeContractErrs.OrderCancelled); }); orderWatcher.subscribe(callback); await contractWrappers.exchange.cancelOrderAsync(signedOrder); |