-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
647f6d5
to
b474ab7
Compare
expectPromise
and expectEqualPromisesOrValues
adds tests for expectPromise and expectEqualPromisesOrValues
99a75a3
to
cfefdc3
Compare
There was a problem hiding this 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.
adds tests for
expectPromise
andexpectEqualPromisesOrValues
#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.