diff --git a/server/src/domain/library/library.service.spec.ts b/server/src/domain/library/library.service.spec.ts index 9c4d5cce51..0e81e79ccb 100644 --- a/server/src/domain/library/library.service.spec.ts +++ b/server/src/domain/library/library.service.spec.ts @@ -1252,7 +1252,7 @@ describe(LibraryService.name, () => { }), ); - await expect(sut.watchAll()).rejects.toEqual([expect.stringMatching('/Error: Error/')]); + await expect(sut.watchAll()).rejects.toThrow('Error!'); }); it('should ignore unknown extensions', async () => {