mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
test(ui): fix warnings (#4187)
* fix(ui): address test warnings * ignore lint error in test Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -12,11 +12,12 @@ vi.mock('@material-ui/core', async () => {
|
||||
})
|
||||
|
||||
vi.mock('react-router-dom', () => ({
|
||||
Link: ({ to, children, ...props }) => (
|
||||
<a href={to} {...props}>
|
||||
// eslint-disable-next-line react/display-name
|
||||
Link: React.forwardRef(({ to, children, ...props }, ref) => (
|
||||
<a href={to} ref={ref} {...props}>
|
||||
{children}
|
||||
</a>
|
||||
),
|
||||
)),
|
||||
}))
|
||||
|
||||
vi.mock('react-dnd', () => ({
|
||||
|
||||
@@ -57,7 +57,10 @@ export const SaveQueueDialog = () => {
|
||||
return res
|
||||
})
|
||||
.then((res) => {
|
||||
notify('ra.notification.created', 'info', { smart_count: 1 })
|
||||
notify('ra.notification.created', {
|
||||
type: 'info',
|
||||
messageArgs: { smart_count: 1 },
|
||||
})
|
||||
dispatch(closeSaveQueueDialog())
|
||||
refresh()
|
||||
history.push(`/playlist/${res.data.id}/show`)
|
||||
|
||||
Reference in New Issue
Block a user