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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -