Grant Snodgrass
Grant Snodgrass
> Basically, I'm wondering why using `expect().to.eventually.equal()` and `expect().to.be.fulfilled.and.eventually.equal()` behave differently. @hsablonniere In the case of `expect().to.be.fulfilled.and.eventually.equal()`, an assertion is explicitly performed to check whether or not the promise is...
@Cazra What versions of node, chai, chai-as-promised, and mocha are you using? What does your entire test file look like? I just performed a test using node 8.4.0, chai 4.1.2,...
@budleigh I think you just need to pull `await` out of `expect`: ```js await expect(Promise.reject(new TypeError())).to.be.rejectedWith(TypeError); ```
@janis91 As Domenic mentioned, `.rejectedWith` mimics Chai's `.throw` assertion, so the best place to look for clues is http://chaijs.com/api/bdd/#method_throw. Your original example is failing because, when passed an `Error` instance,...
Been awhile since I looked at or thought about this. Here's a related blast from the past: https://github.com/chaijs/chai/issues/881. In the first post of that thread, I propose deprecating `.any`. But...
@robcolburn Thank you for the PR and a thousand apologies for the delay :D I like where you're going with this, and I agree with your conclusion that `#{act}` isn't...
@robcolburn I'm still not sure how I feel about indentation vs no-indentation. But if indentation were to be added, I think it might be as easy as changing: ``` js...
@robcolburn I think that looks fine without any indentation on the "call".
@chrisfosterelli I believe the problem is specifically with the `any` flag, which was added directly to Chai back in v2.0 via https://github.com/chaijs/chai/pull/313, causing chai-things to skip over it [here](https://github.com/chaijs/chai-things/blob/87078e1ba05e53549649438ea4abdfcf34693553/lib/chai-things.js#L238). I...
@wzup As mentioned in the other thread, please check out https://github.com/chaijs/chai-http/pull/97#issuecomment-222397088; I think it may relate to the issue you're running into. I get that you're frustrated but please understand...