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

EXT-1476: Replace toBeTruthy and toBeFalsy with equality check #151

Merged

Conversation

johannes-lindgren
Copy link
Contributor

What?

In the tests for the library, replace

  • toBeTruthy with toEqual(true)
  • toBeFalsy with toEqual(false)

Why?

To not fall victim of type coercion. These functions should all return boolean values.

How to test? (optional)

yarn workspace @storyblok/field-plugin test

@johannes-lindgren johannes-lindgren requested review from a team and eunjae-lee and removed request for a team April 26, 2023 11:28
@vercel
Copy link

vercel bot commented Apr 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
field-plugin-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2023 11:28am

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

Clear !

@johannes-lindgren johannes-lindgren merged commit 365c350 into main Apr 27, 2023
3 checks passed
@johannes-lindgren johannes-lindgren deleted the EXT-1476-replace-to-be-truthy-with-to-be-true branch April 27, 2023 07:55
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.

None yet

2 participants