From fef166bdfda2032643d476dc5aecb592118ee8aa Mon Sep 17 00:00:00 2001 From: Davie Date: Tue, 13 Aug 2024 10:59:37 +0100 Subject: [PATCH] test: update expected error message --- .../site-middleware/src/loaders/__tests__/loadLocalFile.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/site-middleware/src/loaders/__tests__/loadLocalFile.test.ts b/packages/site-middleware/src/loaders/__tests__/loadLocalFile.test.ts index 1bdcc274..6b99bb0b 100644 --- a/packages/site-middleware/src/loaders/__tests__/loadLocalFile.test.ts +++ b/packages/site-middleware/src/loaders/__tests__/loadLocalFile.test.ts @@ -26,7 +26,7 @@ describe('GIVEN loadLocalFile', () => { test('THEN it throws and error when the local file does not exist', async () => { // assert await expect(loadLocalFile('some/non-existent/mynamespace/mydir')).rejects.toThrow( - /ENOENT: no such file or directory, stat 'some\/non-existent\/mynamespace\/mydir'/ + "ENOENT: no such file or directory, stat 'some/non-existent/mynamespace/mydir'" ); }); test('THEN it loads the index file if a directory is requested', async () => {