The following call
filestore.getBlockNumber.q(fileHash).should.eventually.bignumber.equal(blockNumber)
Fails with
AssertionError: expected { state: 'pending' } to be an instance of string, number or BigNumber
The following call
filestore.getBlockNumber.q(fileHash).should.eventually.bignumber.equal(blockNumber)
Fails with
AssertionError: expected { state: 'pending' } to be an instance of string, number or BigNumber
I can reproduce the issue, and also fix it by changing the order in which the plugins are used:
chai.use(require('chai-bignumber'));
chai.use(require('chai-as-promised'));