-
Notifications
You must be signed in to change notification settings - Fork 22
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
ui: remove enzyme from common #3509
Conversation
DonHaul
commented
Mar 18, 2025
- ref: ui: remove enzyme from common cern-sis/issues-inspire#775
413bdab
to
f9b67fb
Compare
inspirehep
|
Project |
inspirehep
|
Branch Review |
enzyme-is-dead-common-2
|
Run status |
|
Run duration | 07m 45s |
Commit |
|
Committer | DonHaul |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
37
|
|
0
|
|
67
|
View all changes introduced in this branch ↗︎ |
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.
Found some missing assertions
const wrapper = shallow(<UnlinkedAuthor author={author} />); | ||
expect(wrapper).toMatchSnapshot(); | ||
const { getByText } = render(<UnlinkedAuthor author={author} />); | ||
getByText('Name, Full'); |
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.
here you are missing the expect part
expect(wrapper.find(GoBackLink)).toHaveProp({ | ||
children: 'custom', | ||
}); | ||
expect(getByRole('button')); |
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.
here you are also missing the .somthing after the expect
f9b67fb
to
fe7ceca
Compare
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.
All good!