From 416d8038b3135b3ed20bf35e19a000cfa7f4e269 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:04:09 -0700 Subject: [PATCH] Error handling in test server --- packages/server/src/handlers.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/handlers.test.ts b/packages/server/src/handlers.test.ts index fbed34f..b2a22d2 100644 --- a/packages/server/src/handlers.test.ts +++ b/packages/server/src/handlers.test.ts @@ -68,8 +68,8 @@ describe('media', () => { headers['content-type'] = contentType; } const filePath = `fixtures/${path}`; - const file = await readFile(filePath); try { + const file = await readFile(filePath); res.writeHead(200, headers); res.end(file); } catch (e) {