-
Notifications
You must be signed in to change notification settings - Fork 47
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
chore(resin): Add resin tags to mentions list #536
Conversation
src/components/ItemList/ItemList.tsx
Outdated
onSelect, | ||
...rest | ||
}: Props<T>): JSX.Element => { | ||
const ItemList = <T extends { id: string }>(props: Props<T>): JSX.Element => { |
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.
This file is meant to be a generic component, right? Should the resin tags live on a decorated version of ItemRow, instead?
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.
RE: #536 (comment), seems like moving the resin tags to ItemRow
is still too specific toward at-mention
let reduxSpy: jest.SpyInstance; | ||
|
||
beforeEach(() => { | ||
reduxSpy = jest.spyOn(ReactRedux, 'useSelector').mockImplementation(() => true); |
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.
Is this mockImplementation
needed?
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.
Yeah it is needed since we use shallow
above instead of mount
.
|
No description provided.