-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chai-As-Promised integration not working (possible Typescript clash?) #59
Comments
weijie-tang
changed the title
Integration with chai-as-promised works with expect, but not with should (possible Typescript clash?)
Chai-As-Promised integration not working (possible Typescript clash?)
Jul 7, 2017
The second assertion worked after using chai.should(); in my imports, but the first one still has the same issue. |
The Import: import chaiThings from 'chai-things';
import chaiAsPromised from 'chai-as-promised';
chai.use(chaiThings);
chai.use(chaiAsPromised); Assert: return expect(request)
.to.eventually.be.an('array')
.that.contains.something.with.property('x', 'y'); |
Maybe I'm missing something here, but I'm still getting this error:
I'm running these versions
Here's the repro
Any ideas? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When parsing the values of an array returned by a promise, I get weird behavior.
Given the following versions of chai, chai-things, chai-as-promised and typescript:
And the following import order:
And the following assertions:
I get the following error:
The text was updated successfully, but these errors were encountered: