aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/buffer.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-04 07:03:55 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-04 07:03:55 -0700
commit0e3df2552641c3f6cf1fd2ab2ee11207e49cc181 (patch)
tree0c630bb323e85d4290eab435e7ab51b72c5e8429 /integration/bunjs-only-snippets/buffer.test.js
parent66e8d7346f4e2d0baffdcc23ab56c4ed3d77037a (diff)
downloadbun-0e3df2552641c3f6cf1fd2ab2ee11207e49cc181.tar.gz
bun-0e3df2552641c3f6cf1fd2ab2ee11207e49cc181.tar.zst
bun-0e3df2552641c3f6cf1fd2ab2ee11207e49cc181.zip
specifically check utf8
Diffstat (limited to 'integration/bunjs-only-snippets/buffer.test.js')
-rw-r--r--integration/bunjs-only-snippets/buffer.test.js2
1 files changed, 2 insertions, 0 deletions
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();