-
Notifications
You must be signed in to change notification settings - Fork 30
feat: added testcase and popup #187
feat: added testcase and popup #187
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #187 +/- ##
==========================================
+ Coverage 96.95% 96.98% +0.02%
==========================================
Files 108 109 +1
Lines 1543 1558 +15
Branches 196 198 +2
==========================================
+ Hits 1496 1511 +15
Misses 5 5
Partials 42 42
|
…om:utkarsha-deriv/deriv-api-docs into utkarsha/display-popup-upon-token-creation update branch
src/features/dashboard/components/Dialogs/TokenCreationDialogSuccess/index.tsx
Show resolved
Hide resolved
…also testcases written
hubert-deriv
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.
Please resolve the conflicts so that I can merge
| @@ -1,5 +1,5 @@ | |||
| import React from 'react'; | |||
| import { cleanup, render, screen, within } from '@site/src/test-utils'; | |||
| import { cleanup, fireEvent, render, screen, within } from '@site/src/test-utils'; | |||
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 believe we are not using fireEvent right? I think we can remove this import then.
| }); | ||
| createToken(name, selectedTokenScope); | ||
| setFormIsCleared(true); | ||
| setToggleModal(!is_toggle); |
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 think setToggleModal(prev => !prev) is a nicer way of handling it. If setting your state is dependent on your previous state, you should use this prev (or prevState) method.
39ac8e4
No description provided.