From 7a6b6639bcf6ee9c8c514a91201e56f5103fb2da Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 1 Apr 2022 19:53:17 -0700 Subject: Test written length --- integration/bunjs-only-snippets/response.file.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integration/bunjs-only-snippets/response.file.test.js') 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(); -- cgit v1.2.3