Skip to content

Commit

Permalink
Error handling in test server
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Mar 25, 2024
1 parent df85541 commit 416d803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 416d803

Please sign in to comment.