From 6d92f19dd999f29f536464ecc61669c7ce7a7c07 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sun, 1 Nov 2026 05:29:34 +0000 Subject: [PATCH] Run binary round-trip coverage with the Node CLI runner --- test/e2e-cli/test-setup-put-cat.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e-cli/test-setup-put-cat.ts b/test/e2e-cli/test-setup-put-cat.ts index 0be897cf..c1d8d142 100644 --- a/test/e2e-cli/test-setup-put-cat.ts +++ b/test/e2e-cli/test-setup-put-cat.ts @@ -73,19 +73,19 @@ test("CLI file operations: push / cat / ls / info / rm / resolve / cat-rev / pul console.log("[PASS] push/cat roundtrip matched"); }); - await t.step("push/pull binary roundtrip", async () => { + await t.test("push/pull binary roundtrip", async () => { const source = workDir.join("binary-source.bin"); const restored = workDir.join("binary-restored.bin"); const remotePath = "test/blob-roundtrip.bin"; const content = Uint8Array.from({ length: 1025 }, (_, index) => index % 256); - await Deno.writeFile(source, content); + await writeFile(source, content); await run("push", source, remotePath); await run("pull", remotePath, restored); - assertEquals(await Deno.readFile(restored), content, "Binary push/pull must preserve every byte"); - const info = JSON.parse(await run("info", remotePath)); - assertEquals(info.size, content.byteLength, "Binary Metadata must retain the original byte length"); + assert.deepStrictEqual(new Uint8Array(await readFile(restored)), content, "Binary push/pull must preserve every byte"); + const info = JSON.parse(await run("info", remotePath)) as Record; + assert.deepStrictEqual(info.size, content.byteLength, "Binary Metadata must retain the original byte length"); }); // ------------------------------------------------------------------