Add tests for web3@1.0

This commit is contained in:
Leonid Logvinov
2017-08-29 18:42:13 +02:00
parent 7d82d14a7d
commit da2661cf33

16
test/web3_beta_test.ts Normal file
View File

@@ -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();
});
});