From 3f44fb8312dc3c378f9df3c6efea6bad0d1e2563 Mon Sep 17 00:00:00 2001 From: nickviola Date: Fri, 1 Dec 2023 10:18:10 -0600 Subject: [PATCH] Fix tests for 403 output --- backend/test/scan-tasks.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/scan-tasks.test.ts b/backend/test/scan-tasks.test.ts index 31a0b3846..e52662282 100644 --- a/backend/test/scan-tasks.test.ts +++ b/backend/test/scan-tasks.test.ts @@ -232,7 +232,7 @@ describe('domains', () => { .get(`/scan-tasks/${scanTask.id}/logs`) .set('Authorization', createUserToken({})) .expect(403); - expect(response.text).toEqual(''); + expect(response.text).toEqual('Unauthorized access. View logs for details.'); expect(getLogs).not.toHaveBeenCalled(); }); });