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:
Deluan Quintão
2025-06-07 23:11:13 -04:00
committed by GitHub
parent 2867cebd55
commit 844966df89
2 changed files with 8 additions and 4 deletions

View File

@@ -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', () => ({

View File

@@ -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`)