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

Fix/chai.expect for chai.should #1804

Conversation

alanarvelo
Copy link
Contributor

This PR addresses Issue Fixes #1687 which explains why chai.expect is preferred over chai.should.

Added const { expect } = require('chai'); to each file that used chai.should (~56 files) and then replaced instances of obj.should.equal() for expect(obj).to.equal().

Only modified test files.

@alanarvelo alanarvelo changed the title Fix/chai.expect for chai.should #1780 Fix/chai.expect for chai.should Jun 18, 2019
@nventuro nventuro added the tests Test suite and helpers. label Jun 19, 2019
Copy link
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, great work @alanarvelo, thank you very much for this! This looks fine by me, but I also want @frangio to take a look, since all tests are affected by this PR.

@frangio
Copy link
Contributor

frangio commented Jun 24, 2019

We've merged #1780 now which existed prior to this PR. Sorry about that @alanarvelo!

@frangio frangio closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite and helpers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace chai.should with chai.expect.
3 participants