fix: address type issues in test suites

This commit is contained in:
ramvignesh-b
2026-04-12 16:11:14 +05:30
parent 293da0a18a
commit 090434d507
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ describe("request interceptor", () => {
}); });
it("should not send Authorization header when the store has no token", async () => { it("should not send Authorization header when the store has no token", async () => {
let capturedAuthHeader: string | null; let capturedAuthHeader: string | null = "";
server.use( server.use(
http.get(`${API_URL}/api/auth/me/`, ({ request }) => { http.get(`${API_URL}/api/auth/me/`, ({ request }) => {
capturedAuthHeader = request.headers.get("Authorization"); capturedAuthHeader = request.headers.get("Authorization");
+1 -1
View File
@@ -46,7 +46,7 @@ describe("keystore", () => {
await saveMasterKey(key1); await saveMasterKey(key1);
await saveMasterKey(key2); await saveMasterKey(key2);
const loadedKey = await loadMasterKey(); 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 key1Jwk = await crypto.subtle.exportKey("jwk", key1);
const key2Jwk = await crypto.subtle.exportKey("jwk", key2); const key2Jwk = await crypto.subtle.exportKey("jwk", key2);