aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/mmap.test.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-01 01:17:36 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-01 01:17:36 -0700
commite0011fd6baf2fe2b12d1b2a909981da1a183cdad (patch)
treee59f664577a99789c933ca2fe60841b10c675893 /integration/bunjs-only-snippets/mmap.test.js
parent8e0ee052eb900465f6bffb9d4c226d3ca762780a (diff)
downloadbun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.tar.gz
bun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.tar.zst
bun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.zip
[bun.js] Use `Headers` from WebKit instead of custom
Diffstat (limited to 'integration/bunjs-only-snippets/mmap.test.js')
-rw-r--r--integration/bunjs-only-snippets/mmap.test.js10
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
+});