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

test(refactor): use 'toEqual' instead of 'toStrictEqual' for Responses #329

Merged

Conversation

oscard0m
Copy link
Member

@oscard0m oscard0m commented Jul 19, 2023

Resolves #328


Behavior

Before the change?

Test assertions of Responses from fetch-mock are done with jest.toStrictEqual with JSON.stringify

After the change?

Test assertions of Responses from fetch-mock are done with jest.toEqual

Other information

More context in octokit/core.js#588


Additional info

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Type: Maintenance


@oscard0m oscard0m added the Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR label Jul 19, 2023
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

❤️

@oscard0m oscard0m merged commit 0303720 into main Jul 19, 2023
9 checks passed
@oscard0m oscard0m deleted the migrate-response-assertions-from-toStrinctEqual-to-toEqual branch July 19, 2023 14:12
@github-actions
Copy link
Contributor

🎉 This PR is included in version 20.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Replace toStrictEqual with JSON.stringify Response assertions with toEqual in rest.js
2 participants