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

chore: Improve Jest tests with more precise assertions #1912

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

jdufresne
Copy link
Contributor

Avoid type coercion for assertions by using toBe, toBeNull, and toStrictEqual.

These matchers are documented at:

@jdufresne jdufresne changed the title Improve Jest tests with more precise assertions chore: Improve Jest tests with more precise assertions Dec 27, 2023
@SethFalco SethFalco merged commit f6a2ca2 into svg:main Dec 28, 2023
10 checks passed
@jdufresne jdufresne deleted the jest-to-strict-equal branch December 28, 2023 20:00
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