From 7e5dddd2fa3d940ebfff0ba2f24d1789f41212ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=A4ufler?= Date: Fri, 3 Mar 2023 21:41:36 +0100 Subject: [PATCH] Fix broken async test example (#2291) --- docs/cli/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cli/test.md b/docs/cli/test.md index a700b24ca4..9eef73c6d0 100644 --- a/docs/cli/test.md +++ b/docs/cli/test.md @@ -103,7 +103,7 @@ Alternatively, use the `done` callback to signal completion. If you include the import { expect, test } from "bun:test"; test("2 * 2", done => { - Promise.resolve(2 * 2).then(done => { + Promise.resolve(2 * 2).then(result => { expect(result).toEqual(4); done(); });