mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
fix: address type issues in test suites
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user