aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/exchange_wrapper_test.ts (renamed from test/exchange_wrapper.ts)12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/exchange_wrapper.ts b/test/exchange_wrapper_test.ts
index 4bfc49374..bb09a0344 100644
--- a/test/exchange_wrapper.ts
+++ b/test/exchange_wrapper_test.ts
@@ -1,10 +1,12 @@
import 'mocha';
import * as chai from 'chai';
import chaiAsPromised = require('chai-as-promised');
-import * as Web3 from 'web3';
import {web3Factory} from './utils/web3_factory';
import {ZeroEx} from '../src/0x.js';
import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
+import * as OrderJSON from './fixtures/orders/5_MKR_for_42_MLN.json';
+import * as BigNumber from 'bignumber.js';
+import {signedOrderFromJSON} from './utils/order';
const expect = chai.expect;
chai.use(chaiAsPromised);
@@ -92,4 +94,12 @@ describe('ExchangeWrapper', () => {
expect(isValid).to.be.true;
});
});
+ describe('#fillOrderAsync', () => {
+ const fillAmount = new BigNumber(1);
+ const signedOrder = signedOrderFromJSON(OrderJSON);
+ it('fillsOrder', async () => {
+ const orderFillResponse = await zeroEx.exchange.fillOrderAsync(signedOrder, fillAmount);
+ console.log(orderFillResponse);
+ });
+ });
});