aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 21:44:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 21:44:54 +0800
commit2a7cafbf20e4ceb42ab79303213a324261dadc0c (patch)
tree0e9992334007f8602a0f1a950418053d6ed9cda4 /packages/0x.js
parentd639a22cffebed137d703ad76b30f5bcb42de9a4 (diff)
downloaddexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar.gz
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar.bz2
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar.lz
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar.xz
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.tar.zst
dexon-sol-tools-2a7cafbf20e4ceb42ab79303213a324261dadc0c.zip
Add err==null assertions
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/ether_token_wrapper_test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/0x.js/test/ether_token_wrapper_test.ts b/packages/0x.js/test/ether_token_wrapper_test.ts
index 03f5216ee..b64c53283 100644
--- a/packages/0x.js/test/ether_token_wrapper_test.ts
+++ b/packages/0x.js/test/ether_token_wrapper_test.ts
@@ -154,6 +154,7 @@ describe('EtherTokenWrapper', () => {
it('Should receive the Transfer event when tokens are transfered', (done: DoneCallback) => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<TransferContractEventArgs>) => {
+ expect(err).to.be.null();
expect(logEvent).to.not.be.undefined();
expect(logEvent.isRemoved).to.be.false();
expect(logEvent.log.logIndex).to.be.equal(0);
@@ -176,6 +177,7 @@ describe('EtherTokenWrapper', () => {
it('Should receive the Approval event when allowance is being set', (done: DoneCallback) => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<ApprovalContractEventArgs>) => {
+ expect(err).to.be.null();
expect(logEvent).to.not.be.undefined();
expect(logEvent.isRemoved).to.be.false();
const args = logEvent.log.args;
@@ -194,6 +196,7 @@ describe('EtherTokenWrapper', () => {
it('Should receive the Deposit event when ether is being deposited', (done: DoneCallback) => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<DepositContractEventArgs>) => {
+ expect(err).to.be.null();
expect(logEvent).to.not.be.undefined();
expect(logEvent.isRemoved).to.be.false();
const args = logEvent.log.args;
@@ -211,6 +214,7 @@ describe('EtherTokenWrapper', () => {
it('Should receive the Withdrawal event when ether is being withdrewn', (done: DoneCallback) => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<WithdrawalContractEventArgs>) => {
+ expect(err).to.be.null();
expect(logEvent).to.not.be.undefined();
expect(logEvent.isRemoved).to.be.false();
const args = logEvent.log.args;