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
UIIN-2668: Jest/RTL: Cover InstancePlugin component with unit tests #2466
Conversation
jest.clearAllMocks(); | ||
}); | ||
|
||
it('should InstancePlugin', () => { |
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.
What does it mean 'should InstancePlugin'
?
Maybe you meant something like 'should render InstancePlugin'
?
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.
Fixed
}); | ||
|
||
it('should InstancePlugin', () => { | ||
renderWithIntl(<InstancePlugin onSelectMock={onSelectMock} isDisabled={false} />); |
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 onSelectMock
property is not expected.
Maybe you meant
renderWithIntl(<InstancePlugin onSelectMock={onSelectMock} isDisabled={false} />); | |
renderWithIntl(<InstancePlugin onSelect={onSelectMock} isDisabled={false} />); |
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.
Hi @artem-blazhko, fixed
Quality Gate passedIssues Measures |
https://folio-org.atlassian.net/browse/UIIN-2668
We added tests for
InstancePlugin