From b5df8ca0fde78c12ffc06f2b7d8e0cb806e4b793 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Tue, 6 Jun 2023 21:53:59 +0200 Subject: [PATCH] 404 test --- packages/backend/test/e2e/oauth.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/test/e2e/oauth.ts b/packages/backend/test/e2e/oauth.ts index fd782d8475..dae5f9c086 100644 --- a/packages/backend/test/e2e/oauth.ts +++ b/packages/backend/test/e2e/oauth.ts @@ -843,7 +843,10 @@ describe('OAuth', () => { }); }); - // TODO: Unknown OAuth endpoint + test('Unknown OAuth endpoint', async () => { + const response = await fetch(new URL('/oauth/foo', host)); + assert.strictEqual(response.status, 404); + }); // TODO: Add spec links to tests });