aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 21:12:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 21:13:32 +0800
commit07cdfa655be81862f7ff40fe5ac6fdb38d780370 (patch)
tree4f1e206b043b2bef0db12f39934b094dfeea7e83 /test
parent88316455b74d2ecde1da55bf2bb36b6c9b46bcb1 (diff)
downloaddexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar.gz
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar.bz2
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar.lz
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar.xz
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.tar.zst
dexon-sol-tools-07cdfa655be81862f7ff40fe5ac6fdb38d780370.zip
Add FILL_AMOUNT_IS_ZERO check
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index b2fb1894b..4867427ae 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -7,7 +7,7 @@ import * as _ from 'lodash';
import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
import * as BigNumber from 'bignumber.js';
import {orderFactory} from './utils/order_factory';
-import {Token} from '../src/types';
+import {FillOrderValidationErrs, Token} from '../src/types';
import * as Web3 from 'web3';
import * as dirtyChai from 'dirty-chai';
import ChaiBigNumber = require('chai-bignumber');
@@ -134,7 +134,7 @@ describe('ExchangeWrapper', () => {
5, addressBySymbol.MLN, 5, addressBySymbol.GNT);
const fillAmount = new BigNumber(0);
expect(zeroEx.exchange.fillOrderAsync(signedOrder, fillAmount))
- .to.be.rejectedWith('This order has already been filled or cancelled');
+ .to.be.rejectedWith(FillOrderValidationErrs.FILL_AMOUNT_IS_ZERO);
});
});
describe('successful fills', () => {