javascript - Using chai-as-promised and chai-bignumber together fails -
the following call
filestore.getblocknumber.q(filehash).should.eventually.bignumber.equal(blocknumber)
fails with
assertionerror: expected { state: 'pending' } instance of string, number or bignumber
i can reproduce issue, , fix changing order in plugins used:
chai.use(require('chai-bignumber')); chai.use(require('chai-as-promised'));
Comments
Post a Comment