-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
Fix wrong order of expected and actual values for members matcher #511
Conversation
@eeroan thanks for the PR, but it seems like this is failing the test suite - you havent modified the tests, which'll need to be done before this PR can be merged. Are you happy to do that? |
Sure. Maybe tomorrow.
— |
@eeroan any chance you could update the tests for this PR? I'd be keen to merge it 😄 |
I tried to fix the tests but it turned out to be a huge change in tests/production code so I gave up :( Perhaps it’s easier for you, since you are more familiar with the codebase.
|
Hi! Just change the four chai/lib/chai/core/assertions.js Lines 1588 to 1589 in 4f72846
chai/lib/chai/core/assertions.js Lines 1597 to 1598 in 4f72846
(Or lemme know if you want me to PR it) |
This caused i.e. WebStorm's diff view to show actual value as expected and vice versa.
Tests are now fixed |
@@ -129,7 +129,7 @@ module.exports = function (_chai, util) { | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be excluded from the diff. See the notes around pull requests here: https://github.com/chaijs/chai/blob/master/CONTRIBUTING.md#pull-requests
Namely:
npm test # when finished running tests... git checkout chai.js
Fixed via #702 |
This caused i.e. WebStorm's diff view to show actual value as expected and vice versa.