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

polish: add tests for expectPromise and expectEqualPromisesOrValues #3655

Merged
merged 3 commits into from
Aug 14, 2022

Conversation

yaacovCR
Copy link
Contributor

adds tests for expectPromise and expectEqualPromisesOrValues

#3620 introduced expectEqualPromisesOrValues with a TODO of moving to testUtils and testing.

This PR accomplishes that, and also moves the related expectPromise function, adding tests for that utility function as well.

@netlify
Copy link

netlify bot commented Jun 21, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 2f7d954
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/62f9582747e88800087c6fe2
😎 Deploy Preview https://deploy-preview-3655--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR changed the title polish: add tests for more testUtils polish: add tests for expectPromise and expectEqualPromisesOrValues Jun 21, 2022
@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Jun 21, 2022
@yaacovCR yaacovCR requested a review from a team June 21, 2022 10:15
adds tests for expectPromise and expectEqualPromisesOrValues
@yaacovCR yaacovCR requested a review from a team August 2, 2022 01:45
Copy link
Member

@IvanGoncharov IvanGoncharov left a comment

Choose a reason for hiding this comment

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

I left a minor comment about using ES6 syntax otherwise ready to be merged 👍

Note: In the long run, I don't think need to test both subscribe and createSourceEventStream. Currently, both functions are messy, but after the upcoming refactoring hopefully, we should have more modular code and don't need to check both. Similar to how we don't check the graphql function with all possible scenarios of the underlying function.

@yaacovCR yaacovCR merged commit a842678 into graphql:main Aug 14, 2022
@yaacovCR yaacovCR deleted the test-test-utils branch August 14, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants