javascript - Deep equal using promises in Chai.js (testing) -


i'm using chai test , want deep compare returned object promise.

i tried approach:

expect(promise).to.eventually.eql(object) expect(promise).deep.equals(object) expect(promise).should.eventually.equal(object) 

but not work. checked many other samples none of them works. i'm getting:

assertionerror: unspecified assertionerror

does experienced similar?

(by way, "object" contains array of objects...)

you can combine eventually(which chai-as-promised?) , deep.

expect(promise).to.eventually.deep.equal(object) 

Popular posts from this blog