From 0e3df2552641c3f6cf1fd2ab2ee11207e49cc181 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 4 May 2022 07:03:55 -0700 Subject: specifically check utf8 --- integration/bunjs-only-snippets/buffer.test.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'integration/bunjs-only-snippets/buffer.test.js') diff --git a/integration/bunjs-only-snippets/buffer.test.js b/integration/bunjs-only-snippets/buffer.test.js index ba325adc9..bd3462138 100644 --- a/integration/bunjs-only-snippets/buffer.test.js +++ b/integration/bunjs-only-snippets/buffer.test.js @@ -8,6 +8,8 @@ it("buffer", () => { expect(Object.keys(buf).length > 0).toBe(true); gc(); expect(buf.write("hello world ")).toBe(12); + expect(buf.write("hello world ", "utf8")).toBe(12); + gc(); expect(buf.toString("utf8", 0, "hello world ".length)).toBe("hello world "); gc(); -- cgit v1.2.3