From da2661cf332a5d884184c376c2fedd3937a1b6ac Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 29 Aug 2017 18:42:13 +0200 Subject: Add tests for web3@1.0 --- test/web3_beta_test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/web3_beta_test.ts diff --git a/test/web3_beta_test.ts b/test/web3_beta_test.ts new file mode 100644 index 000000000..2fe962555 --- /dev/null +++ b/test/web3_beta_test.ts @@ -0,0 +1,16 @@ +import * as chai from 'chai'; +import {chaiSetup} from './utils/chai_setup'; +import 'mocha'; +import {ZeroEx, Order, SubscriptionOpts, TokenEvents, ContractEvent} from '../src'; +import {web3Factory} from './utils/web3_factory'; + +chaiSetup.configure(); +const expect = chai.expect; + +describe('ZeroEx with beta web3', () => { + const web3_beta = web3Factory.createBeta(); + const zeroEx = new ZeroEx(web3_beta.currentProvider); + it('is able to make a call using a beta provider', async () => { + await zeroEx.tokenRegistry.getTokenAddressesAsync(); + }); +}); -- cgit