From 38fc1ac0ea34798d093b1774d29260fe6ea2fbe7 Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Thu, 29 Feb 2024 23:40:52 +0100 Subject: [PATCH] expect correct error --- server/src/domain/library/library.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () => {