以下电话
filestore.getBlockNumber.q(fileHash).should.eventually.bignumber.equal(blockNumber)
失败
AssertionError: expected { state: 'pending' } to be an instance of string, number or BigNumber
答案 0 :(得分:3)
我可以重现这个问题,并通过更改插件的使用顺序来修复它:
chai.use(require('chai-bignumber'));
chai.use(require('chai-as-promised'));