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

Removing .to.equal syntax #1575

Closed
wants to merge 1 commit into from

Conversation

GabrielAmazonas
Copy link

the expect apy disposes the .toBe method for comparison.

the expect apy disposes the .toBe method for comparison.
@@ -65,7 +65,7 @@ const wrapper = shallow((
</div>
));

expect(wrapper.contains(<div data-foo="foo" data-bar="bar">{4}</div>)).to.equal(true);
expect(wrapper.contains(<div data-foo="foo" data-bar="bar">{4}</div>)).toBe(true);
Copy link
Member

Choose a reason for hiding this comment

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

All assertions in our documentation use chai's expect, and intentionally do NOT use jest's jasmine-inspired assertion syntax.

This is correct as-is.

@ljharb
Copy link
Member

ljharb commented Mar 14, 2018

Duplicate of #986.

This was referenced Mar 14, 2018
@ljharb ljharb mentioned this pull request Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants