fix tests

This commit is contained in:
2026-03-15 22:33:06 +01:00
parent 2d4f1ee314
commit 2406d41dcb
15 changed files with 100 additions and 88 deletions

View File

@@ -27,10 +27,10 @@ describe('UserSongUsageService', () => {
of([
{id: 'show-1', owner: 'user-1', archived: false},
{id: 'show-2', owner: 'user-2', archived: true},
] as never)
]) as never
);
showSongDataServiceSpy.list$.and.callFake((showId: string) =>
of(showId === 'show-1' ? ([{songId: 'song-1'}, {songId: 'song-1'}, {songId: 'song-2'}] as never) : ([{songId: 'song-3'}] as never))
(of(showId === 'show-1' ? [{songId: 'song-1'}, {songId: 'song-1'}, {songId: 'song-2'}] : [{songId: 'song-3'}]) as never)
);
dbServiceSpy.doc.and.returnValue({update: jasmine.createSpy('update').and.resolveTo()} as never);