From e0011fd6baf2fe2b12d1b2a909981da1a183cdad Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 1 Apr 2022 01:17:36 -0700 Subject: [bun.js] Use `Headers` from WebKit instead of custom --- integration/bunjs-only-snippets/mmap.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'integration/bunjs-only-snippets/mmap.test.js') diff --git a/integration/bunjs-only-snippets/mmap.test.js b/integration/bunjs-only-snippets/mmap.test.js index 03ce75e87..3dd3aadb9 100644 --- a/integration/bunjs-only-snippets/mmap.test.js +++ b/integration/bunjs-only-snippets/mmap.test.js @@ -10,13 +10,13 @@ it("mmap finalizer", async () => { map = null; Bun.gc(true); - await new Promise(resolve => setTimeout(resolve, 1)); + await new Promise((resolve) => setTimeout(resolve, 1)); }); -it('mmap passed to other syscalls', async () => { +it("mmap passed to other syscalls", async () => { const map = Bun.mmap(path); - await Bun.write(path + '1', map); - const text = await (await Bun.file(path + '1')).text(); + await Bun.write(path + "1", map); + const text = await (await Bun.file(path + "1")).text(); expect(text).toBe(new TextDecoder().decode(map)); }); @@ -46,4 +46,4 @@ it("mmap private", () => { map2[0] = 0; expect(map2[0]).toBe(0); expect(map[0]).toBe(old); -}); \ No newline at end of file +}); -- cgit v1.2.3