diff options
Diffstat (limited to 'integration/bunjs-only-snippets/mmap.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/mmap.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 +}); |