diff options
Diffstat (limited to 'test/bun.js/unsafe.test.js')
-rw-r--r-- | test/bun.js/unsafe.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bun.js/unsafe.test.js b/test/bun.js/unsafe.test.js index 741dc0241..8ce7598db 100644 --- a/test/bun.js/unsafe.test.js +++ b/test/bun.js/unsafe.test.js @@ -7,7 +7,7 @@ it("arrayBufferToString u8", async () => { gc(true); expect(Bun.unsafe.arrayBufferToString(bytes)).toBe("hello world"); gc(true); - await new Promise((resolve) => setTimeout(resolve, 0)); + await new Promise(resolve => setTimeout(resolve, 0)); gc(true); }); @@ -18,7 +18,7 @@ it("arrayBufferToString ArrayBuffer", async () => { const out = Bun.unsafe.arrayBufferToString(bytes.buffer); expect(out).toBe("hello world"); gc(true); - await new Promise((resolve) => setTimeout(resolve, 0)); + await new Promise(resolve => setTimeout(resolve, 0)); globalThis.bytes = bytes; gc(true); expect(out).toBe("hello world"); @@ -32,7 +32,7 @@ it("arrayBufferToString u16", () => { const charCodes = Bun.unsafe .arrayBufferToString(uint16) .split("") - .map((a) => a.charCodeAt(0)); + .map(a => a.charCodeAt(0)); gc(true); for (let i = 0; i < charCodes.length; i++) { expect("hello world"[i]).toBe(String.fromCharCode(charCodes[i])); |