aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 00:42:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-30 00:42:13 +0800
commitda2661cf332a5d884184c376c2fedd3937a1b6ac (patch)
treef3072005d951e92a3e4e81505a56b3a390ba94c4
parent7d82d14a7d57566c5220a2342e21c755a9dc6a4a (diff)
downloaddexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar.gz
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar.bz2
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar.lz
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar.xz
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.tar.zst
dexon-sol-tools-da2661cf332a5d884184c376c2fedd3937a1b6ac.zip
Add tests for web3@1.0
-rw-r--r--test/web3_beta_test.ts16
1 files changed, 16 insertions, 0 deletions
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();
+ });
+});