Skip to content

Commit

Permalink
Test with subarray
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Aug 30, 2024
1 parent 1b1d6f2 commit ef3ee55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/resources/documents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit ef3ee55

Please sign in to comment.