summaryrefslogtreecommitdiff
path: root/tests/download_deps.ts
diff options
context:
space:
mode:
authorcyan <cyjan@mrcyjanek.net>2025-09-10 16:51:39 +0000
committercyan <cyjan@mrcyjanek.net>2025-09-10 16:51:39 +0000
commit63e0ea186c12f20b270617f5fdf7da9ce452946a (patch)
treed8aa88022ee92c6a0efe9cd72731b64b9fdbd85f /tests/download_deps.ts
parent92564e0ce703ea591c0c2b64e8ee720bf6b52c1f (diff)
fix: testscyjan-fix-tests
Diffstat (limited to 'tests/download_deps.ts')
-rw-r--r--tests/download_deps.ts4
1 files 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<string> {
+async function sha256(buffer: Uint8Array<ArrayBuffer>): Promise<string> {
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<boolean> {
const [mainFileName] = fileInfo.names;
- let fileBuffer: Uint8Array;
+ let fileBuffer: Uint8Array<ArrayBuffer>;
try {
fileBuffer = await Deno.readFile(filePath);
} catch {