aboutsummaryrefslogtreecommitdiffstats
path: root/test/web3_beta_test.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-08-30 17:24:15 +0800
committerGitHub <noreply@github.com>2017-08-30 17:24:15 +0800
commit5f44b5f7111873a3958050503fff0ed098b65b04 (patch)
treef19caa7d2718c2506699e6c804ac6f837b197c5a /test/web3_beta_test.ts
parent6e34cf2c3bdba83460fc4356ec2e62e712119ec9 (diff)
parentc83e1d57fce55efe5e85221d0442d5f4c0fa0514 (diff)
downloaddexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.gz
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.bz2
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.lz
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.xz
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.tar.zst
dexon-sol-tools-5f44b5f7111873a3958050503fff0ed098b65b04.zip
Merge pull request #142 from 0xProject/feature/support_web3@1.0_provider
Feature/support web3@1.0 provider
Diffstat (limited to 'test/web3_beta_test.ts')
-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..e34812243
--- /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_provider = web3Factory.getProviderBeta();
+ const zeroEx = new ZeroEx(web3_beta_provider);
+ it('is able to make a call using a beta provider', async () => {
+ await zeroEx.tokenRegistry.getTokenAddressesAsync();
+ });
+});