You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a following setup where I use chai-as-promised, should, and chai-arrays:
constchai=require('chai'),chaiAsPromised=require('chai-as-promised'),assertArrays=require('chai-arrays');chai.should();chai.use(assertArrays);chai.use(chaiAsPromised);describe('chai-array with chai-as-promised',async()=>{constarr=['a','b','c'];it('fails using chai-as-promised',async()=>awaitProsmise.resolve(arr).should.eventually.containingAllOf(['c','b','a']););it('works without chai-as-promised',async()=>{letresult=awaitPromise.resolve(arr);result.should.containingAllOf(['c','b','a']);});});
I really don't know whether it's an issue of chai-as-promised, chai-arrays, or the syntax i'm using is wrong - so my apologies if I'm at wrong place, but it'd be really nice if the two could be used combined.
The text was updated successfully, but these errors were encountered:
I have a following setup where I use chai-as-promised, should, and chai-arrays:
I really don't know whether it's an issue of chai-as-promised, chai-arrays, or the syntax i'm using is wrong - so my apologies if I'm at wrong place, but it'd be really nice if the two could be used combined.
The text was updated successfully, but these errors were encountered: