aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-12 01:15:24 +0800
committerJacob Evans <jacob@dekz.net>2017-11-12 01:15:24 +0800
commit394417ff073c54ba7409ac24004a9757935688cb (patch)
tree3941cb1f7d08604e7ca59af57facaa079340b929 /test
parenta85b1f016d96b1706dcea07aa2581a47035ba7db (diff)
downloaddexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar.gz
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar.bz2
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar.lz
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar.xz
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.tar.zst
dexon-sol-tools-394417ff073c54ba7409ac24004a9757935688cb.zip
Removed nits
Diffstat (limited to 'test')
-rw-r--r--test/subscription_test.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/subscription_test.ts b/test/subscription_test.ts
index 9a2198e10..64e9acf0d 100644
--- a/test/subscription_test.ts
+++ b/test/subscription_test.ts
@@ -11,13 +11,8 @@ import {
ZeroEx,
ZeroExError,
Token,
- SubscriptionOpts,
- TokenEvents,
- ContractEvent,
- TransferContractEventArgs,
ApprovalContractEventArgs,
- TokenContractEventArgs,
- LogWithDecodedArgs,
+ TokenEvents,
LogEvent,
} from '../src';
import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
@@ -51,7 +46,6 @@ describe('SubscriptionTest', () => {
afterEach(async () => {
await blockchainLifecycle.revertAsync();
});
-
describe('#subscribe', () => {
const indexFilterValues = {};
const shouldThrowOnInsufficientBalanceOrAllowance = true;
@@ -72,6 +66,7 @@ describe('SubscriptionTest', () => {
(async () => {
const callback = (err: Error, logEvent: LogEvent<ApprovalContractEventArgs>) => {
expect(err).to.not.be.undefined();
+ expect(err).to.not.be.null();
expect(logEvent).to.be.undefined();
done();
};
@@ -89,7 +84,6 @@ describe('SubscriptionTest', () => {
const callback = (err: Error, logEvent: LogEvent<ApprovalContractEventArgs>) => { };
zeroEx.token.subscribe(
tokenAddress, TokenEvents.Approval, indexFilterValues, callback);
- await zeroEx.token.setAllowanceAsync(tokenAddress, coinbase, addressWithoutFunds, allowanceAmount);
stubs = [
Sinon.stub((zeroEx as any)._web3Wrapper, 'getBlockAsync')
.throws("JSON RPC error")