From b814d22f97c1e9fc9b55db752768deddfff7e724 Mon Sep 17 00:00:00 2001 From: cyan Date: Wed, 10 Sep 2025 16:51:39 +0000 Subject: [PATCH] fix: tests --- tests/download_deps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/download_deps.ts b/tests/download_deps.ts index 8871fa5..e869962 100644 --- a/tests/download_deps.ts +++ b/tests/download_deps.ts @@ -31,7 +31,7 @@ export function getFileInfo( return fileInfo; } -async function sha256(buffer: Uint8Array): Promise { +async function sha256(buffer: Uint8Array): Promise { const hashed = new Uint8Array(await crypto.subtle.digest("SHA-256", buffer)); return Array.from(hashed).map((i) => i.toString(16).padStart(2, "0")).join(""); } @@ -72,7 +72,7 @@ async function tryToDownloadFile( async function validFileExists(filePath: string, fileInfo: FileInfo): Promise { const [mainFileName] = fileInfo.names; - let fileBuffer: Uint8Array; + let fileBuffer: Uint8Array; try { fileBuffer = await Deno.readFile(filePath); } catch {