Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit c58687a

Browse files
committed
Fix types for themes tests
1 parent 4a7524b commit c58687a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/player/src/views/Themes/Themes.test.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,23 @@ describe('Themes view', async () => {
196196
expect(themes.applyAdvancedTheme).toHaveBeenCalledTimes(1);
197197

198198
// Change unrelated file -> no reload
199-
watchImmediateCb?.({ paths: ['/appdata/themes/other.json'] });
199+
watchImmediateCb?.({
200+
paths: ['/appdata/themes/other.json'],
201+
type: 'any',
202+
attrs: {},
203+
});
200204
await new Promise((r) => setTimeout(r, 0));
201205
expect(themes.applyAdvancedTheme).toHaveBeenCalledTimes(1);
202206

203207
// Switch back to Default (basic mode)
204208
await ThemesWrapper.selectDefaultTheme();
205209

206210
// Now even if the same file changes, no reload should occur
207-
watchImmediateCb?.({ paths: ['/appdata/themes/my.json'] });
211+
watchImmediateCb?.({
212+
paths: ['/appdata/themes/my.json'],
213+
type: 'any',
214+
attrs: {},
215+
});
208216
expect(themes.applyAdvancedTheme).toHaveBeenCalledTimes(1);
209217
});
210218

0 commit comments

Comments
 (0)