diff options
author | 2022-04-01 19:53:17 -0700 | |
---|---|---|
committer | 2022-04-01 19:53:17 -0700 | |
commit | 7a6b6639bcf6ee9c8c514a91201e56f5103fb2da (patch) | |
tree | c71bca45cfb66787e2343c0f9481d74d8def3dbe /integration/bunjs-only-snippets/response.file.test.js | |
parent | 08bf4694caaadaffe26828ced639b0b0fc3ca9ec (diff) | |
download | bun-7a6b6639bcf6ee9c8c514a91201e56f5103fb2da.tar.gz bun-7a6b6639bcf6ee9c8c514a91201e56f5103fb2da.tar.zst bun-7a6b6639bcf6ee9c8c514a91201e56f5103fb2da.zip |
Test written length
Diffstat (limited to 'integration/bunjs-only-snippets/response.file.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/response.file.test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration/bunjs-only-snippets/response.file.test.js b/integration/bunjs-only-snippets/response.file.test.js index 6a879c758..8444cef33 100644 --- a/integration/bunjs-only-snippets/response.file.test.js +++ b/integration/bunjs-only-snippets/response.file.test.js @@ -34,7 +34,7 @@ it("Bun.write('out.txt', 'string')", async () => { } catch (e) {} } await gcTick(); - await Bun.write("/tmp/out.txt", "string"); + expect(await Bun.write("/tmp/out.txt", "string")).toBe("string".length); await gcTick(); const out = Bun.file("/tmp/out.txt"); await gcTick(); |