-
Notifications
You must be signed in to change notification settings - Fork 42
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
Customisation effort: toast #1510
Conversation
Co-authored-by: Rohan Kadkol <[email protected]>
Co-authored-by: Rohan Kadkol <[email protected]>
@@ -185,3 +185,26 @@ it('should close temporary toast after 7s', () => { | |||
|
|||
jest.useRealTimers(); | |||
}); | |||
|
|||
it('should pass content props correctly', () => { |
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.
nit: Since earlier, we were using CommonProps
(id, className, style), it is good to test if className and style are applied correctly without CommonProps
, like you have it now.
But, you could also test if some other props apart from those three are passed correctly. E.g., onClick
.
This is just an optional suggestion.
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.
Leaving it as is for now.
Changes
contentProps
Testing
Unit tests added
Docs
Changeset