Skip to content
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

Update for Chai v4.0 #131

Merged
merged 1 commit into from
May 26, 2017
Merged

Update for Chai v4.0 #131

merged 1 commit into from
May 26, 2017

Conversation

meeber
Copy link
Contributor

@meeber meeber commented Dec 17, 2016

Chai v4.0 causes some tests to fail due to the change of deep.property to nested.property, and also because a couple of assertion error messages changed slightly. This PR fixes the broken tests.

DO NOT MERGE YET. This PR will be updated once Chai v4.0 is officially released.

@keithamus
Copy link
Member

@meeber think it is possible to get this to work for both chai 3.5 and chai 4? It'd be great to get it merged ahead of time. I suppose we could just check for Assertion.prototype.nested or something?

@meeber
Copy link
Contributor Author

meeber commented May 26, 2017

@keithamus I've updated this PR for the Chai 4.0 release. Although Chai v4.0 is now a dependency for the test suite (due to changes in failed assertion message text, as well as the replacement of .deep with .nested), the library should still support older versions of Chai.

@keithamus keithamus merged commit 6e88c38 into chaijs:master May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants