-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feat/mn 569/add damage part select #829
base: main
Are you sure you want to change the base?
Changes from all commits
881009f
8a3e305
15f6065
3aeac24
7321d81
85e9804
2248f42
9e05110
4ba1449
f393bb6
f19e335
68cf838
7326748
da05641
e7e3e64
6ed9e92
2a8b6f7
065142c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,7 +164,7 @@ describe('InspectionGalleryItemCard component', () => { | |
const { unmount } = render(<InspectionGalleryItemCard {...props} />); | ||
|
||
expect(useInspectionGalleryItemStatusIconName).toHaveBeenCalled(); | ||
expectPropsOnChildMock(Icon, { icon: useInspectionGalleryItemStatusIconName({} as any) }); | ||
expectPropsOnChildMock(Icon, { icon: useInspectionGalleryItemStatusIconName({} as any)! }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even in tests, I really don't like using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of this, we need to specify the exact type using the 'as' keyword to inform TypeScript about a different type But that also have it downsights. |
||
|
||
unmount(); | ||
}); | ||
|
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 prefer this :
over this :
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 would be string forward and don't need to create a new variable. because vehicleType is good variable name.