Skip to content

Commit e77c140

Browse files
fix lint issues
1 parent 18d08d2 commit e77c140

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lambdas/authorizer/src/__tests__/index.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ describe("Authorizer Lambda Function", () => {
145145
"2025-11-31T14:19:00Z",
146146
);
147147
const error = new Error("Metrics failure");
148-
(metricScope as jest.Mock).mockImplementationOnce(() => async () => {
149-
throw error;
150-
});
148+
(metricScope as jest.Mock).mockImplementationOnce(() =>
149+
jest.fn().mockRejectedValue(error),
150+
);
151151

152152
const handler = createAuthorizerHandler(mockedDeps);
153153
handler(mockEvent, mockContext, mockCallback);

0 commit comments

Comments
 (0)