-
Notifications
You must be signed in to change notification settings - Fork 843
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
toast component jest tests #215
Conversation
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.
Looks good! Just had one minor suggestion.
}); | ||
}); | ||
|
||
describe('color', () => { |
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.
Could you import COLORS
from the toast file and loop through each valid value, as in https://github.com/elastic/eui/blob/master/src/components/button/button.test.js#L59 ?
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.
🏀 LGTM!
I just noticed you might be waiting on me. I'm not sure how to review jest tests since I'm not familiar with them. Someone can pair with me to show me or go ahead merge based on @cjcenizal's approval. |
* toast jest tests * using test style guide this time * test each color value
No description provided.