aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/test
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-08-15 11:03:31 +0800
committerJacob Evans <jacob@dekz.net>2018-08-16 09:12:35 +0800
commit88c99396a2d1b880bffb21ef19507d02b474ba9b (patch)
tree8b8b72f1945a7d85f11af14f16338a059cc9f900 /packages/order-watcher/test
parent622509c508272790e3e69c09cf1a1f9696815147 (diff)
downloaddexon-0x-contracts-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.gz
dexon-0x-contracts-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.zst
dexon-0x-contracts-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.ts2
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);