aboutsummaryrefslogtreecommitdiffstats
path: root/test/proxy_wrapper_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-23 22:58:56 +0800
committerFabio Berger <me@fabioberger.com>2017-08-23 22:58:56 +0800
commit9dca3b76b5e01967674f5c69a88c52430a532e40 (patch)
treefc2e1e85446178b70911119811430d59260cc994 /test/proxy_wrapper_test.ts
parentd837e27739614ce6a132e8583409425f726bef89 (diff)
downloaddexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar.gz
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar.bz2
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar.lz
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar.xz
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.tar.zst
dexon-sol-tools-9dca3b76b5e01967674f5c69a88c52430a532e40.zip
rename proxy_wrapper_test to token_transfer_proxy_wrapper_test
Diffstat (limited to 'test/proxy_wrapper_test.ts')
-rw-r--r--test/proxy_wrapper_test.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/proxy_wrapper_test.ts b/test/proxy_wrapper_test.ts
deleted file mode 100644
index 8faef0b30..000000000
--- a/test/proxy_wrapper_test.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import * as chai from 'chai';
-import {chaiSetup} from './utils/chai_setup';
-import {web3Factory} from './utils/web3_factory';
-import {ZeroEx} from '../src';
-import {TokenTransferProxyWrapper} from '../src/contract_wrappers/token_transfer_proxy_wrapper';
-
-chaiSetup.configure();
-const expect = chai.expect;
-
-describe('TokenTransferProxyWrapper', () => {
- let zeroEx: ZeroEx;
- before(async () => {
- const web3 = web3Factory.create();
- zeroEx = new ZeroEx(web3.currentProvider);
- });
- describe('#isAuthorizedAsync', () => {
- it('should return false if the address is not authorized', async () => {
- const isAuthorized = await zeroEx.proxy.isAuthorizedAsync(ZeroEx.NULL_ADDRESS);
- expect(isAuthorized).to.be.false();
- });
- });
- describe('#getAuthorizedAddressesAsync', () => {
- it('should return the list of authorized addresses', async () => {
- const authorizedAddresses = await zeroEx.proxy.getAuthorizedAddressesAsync();
- for (const authorizedAddress of authorizedAddresses) {
- const isAuthorized = await zeroEx.proxy.isAuthorizedAsync(authorizedAddress);
- expect(isAuthorized).to.be.true();
- }
- });
- });
-});