From 090434d507d14ec1eb478891b59972461196fe85 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Sun, 12 Apr 2026 16:11:14 +0530 Subject: [PATCH] fix: address type issues in test suites --- frontend/src/api/apiClient.test.ts | 2 +- frontend/src/utils/keystore.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/apiClient.test.ts b/frontend/src/api/apiClient.test.ts index a11a507..44a439f 100644 --- a/frontend/src/api/apiClient.test.ts +++ b/frontend/src/api/apiClient.test.ts @@ -49,7 +49,7 @@ describe("request interceptor", () => { }); it("should not send Authorization header when the store has no token", async () => { - let capturedAuthHeader: string | null; + let capturedAuthHeader: string | null = ""; server.use( http.get(`${API_URL}/api/auth/me/`, ({ request }) => { capturedAuthHeader = request.headers.get("Authorization"); diff --git a/frontend/src/utils/keystore.test.ts b/frontend/src/utils/keystore.test.ts index 1398494..ea639c1 100644 --- a/frontend/src/utils/keystore.test.ts +++ b/frontend/src/utils/keystore.test.ts @@ -46,7 +46,7 @@ describe("keystore", () => { await saveMasterKey(key1); await saveMasterKey(key2); const loadedKey = await loadMasterKey(); - const loadedJwk = await crypto.subtle.exportKey("jwk", loadedKey); + const loadedJwk = await crypto.subtle.exportKey("jwk", loadedKey!); const key1Jwk = await crypto.subtle.exportKey("jwk", key1); const key2Jwk = await crypto.subtle.exportKey("jwk", key2);