-
Notifications
You must be signed in to change notification settings - Fork 96
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
FLAG-866: fetch notifications and pass them as props to Header #4686
Conversation
1f53d6f
to
2df9dc0
Compare
2df9dc0
to
5ff1b15
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.
// eslint-disable-next-line no-undef | ||
jest.mock('axios'); | ||
|
||
describe('getPublishedNotifications', () => { |
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.
AWESOME! 🚀
}, | ||
]; | ||
|
||
axios.get.mockResolvedValueOnce(response); |
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.
What happened when the result is a empty array? Do you think we need to create a test for this case?
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.
not in this case since the empty array doesn't change anything, we are displaying a collection of items.
5ff1b15
to
ab47872
Compare
Fetching notifications for all pages. Notifications aren't visible yet, that is going to be addressed in a separate ticket.
Overview
Brief description of what this PR does, and why it is needed.
Demo
If applicable: screenshots, gifs, etc.
Notes
If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.
Testing