From ef3ee557a1d806aa7dabb55c90968e347c16b823 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 30 Aug 2024 13:18:08 +0200 Subject: [PATCH] Test with subarray --- test/resources/documents.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/resources/documents.test.ts b/test/resources/documents.test.ts index 7cb745e..5ec4ec4 100644 --- a/test/resources/documents.test.ts +++ b/test/resources/documents.test.ts @@ -42,7 +42,7 @@ it("downloads a document", async () => { expect(file.status).toEqual(200); expect(file.headers["content-type"]).toEqual("image/png"); - expect(file.data.buffer.slice(1, 4)).toEqual("PNG"); + expect(file.data.buffer.subarray(1, 4)).toEqual("PNG"); expect(file.data.filename).toBeTruthy(); });