Add instanceOf assertion

This commit is contained in:
Leonid Logvinov
2017-11-21 13:18:29 -06:00
parent 8d6ba6ee7a
commit 0747e162fa

View File

@@ -363,6 +363,7 @@ describe('TokenWrapper', () => {
expect(logEvent).to.not.be.undefined(); expect(logEvent).to.not.be.undefined();
expect(logEvent.logIndex).to.be.equal(0); expect(logEvent.logIndex).to.be.equal(0);
expect(logEvent.transactionIndex).to.be.equal(0); expect(logEvent.transactionIndex).to.be.equal(0);
expect(logEvent.blockNumber).to.be.instanceOf(Number);
const args = logEvent.args; const args = logEvent.args;
expect(args._from).to.be.equal(coinbase); expect(args._from).to.be.equal(coinbase);
expect(args._to).to.be.equal(addressWithoutFunds); expect(args._to).to.be.equal(addressWithoutFunds);