From e5b903599f676edda9ac4d51419a5a931bd3a8d0 Mon Sep 17 00:00:00 2001 From: Frank Kong Date: Thu, 2 May 2024 12:07:30 -0400 Subject: [PATCH] chore: update unit tests Signed-off-by: Frank Kong --- plugins/scaffolder-backend/src/service/router.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/scaffolder-backend/src/service/router.test.ts b/plugins/scaffolder-backend/src/service/router.test.ts index 2118f46b22..4443b28d09 100644 --- a/plugins/scaffolder-backend/src/service/router.test.ts +++ b/plugins/scaffolder-backend/src/service/router.test.ts @@ -895,6 +895,11 @@ data: {"id":1,"taskId":"a-random-id","type":"completion","createdAt":"","body":{ it('filters steps that the user is not authorized to see', async () => { jest .spyOn(permissionApi, 'authorizeConditional') + .mockImplementationOnce(async () => [ + { + result: AuthorizeResult.ALLOW, + }, + ]) .mockImplementation(async () => [ { result: AuthorizeResult.ALLOW,