-
Notifications
You must be signed in to change notification settings - Fork 62
test: add test for NavbarMobile #339
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: add test for NavbarMobile #339
Conversation
|
Thank you for opening this PR! Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools. Please take a moment to:
More information on how to conduct a self review: This helps make the review process smoother and gives us a clearer understanding of your thought process. Once you've added your self-review, we'll continue from our side. Thank you! |
| } from '../navbar-utils'; | ||
|
|
||
| jest.mock('../navbar-utils', () => ({ | ||
| jest.mock('@/components/utils/ExportTasks', () => ({ |
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.
mocked export fnc,s
| expect(handleLogout).toHaveBeenCalled(); | ||
| }); | ||
|
|
||
| test('export task as json and close menu', () => { |
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.
added test to ensure that export fnc calls and close menu for both json && txt
and added test to check the autosync renders in dialog
Neeraj-gagat
left a comment
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.
done with the self review nothing breaks and all tests passed
increased test coverage from 79 to 93%
Description
This PR adds unit and interaction tests for the NavbarMobile component
Added tests for following
these tests increaced coverage from 79% to 93%
- Fixes: #302
image