-
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
Launchpad: Add task helper and checklist unit tests #67524
Conversation
} ); | ||
} ); | ||
|
||
describe( 'when a non-existing flow is provided', () => { |
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.
It's strange that getArrayOfFilteredTasks
returns null
when no flow is provided and undefined
when no tasks are found. Maybe we should rethink the return values?
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.
Do you think it should be an empty array in those cases? or other thoughts?
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 like empty arrays 👍. No need to type check for a false-y value anymore.
Testing
Working now using the correct command. |
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.
My mistake y'all! @agrullon95 + @Addison-Stavlo It is supposed to be |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7526401 Hi @jeyip, could you please edit the description of this PR and add a screenshot for our translators? Ideally it'd include this string: Thank you in advance! |
Translation for this Pull Request has now been finished. |
* Add task helper unit test * Add checklist unit test * Add checklist item unit test (#67530)
Proposed Changes
Testing Instructions
yarn test-client task-helper
yarn test-client launchpad/test/checklist.tsx
Pre-merge Checklist
Related to #