aboutsummaryrefslogtreecommitdiff
path: root/docs/cli
diff options
context:
space:
mode:
authorGravatar Hannes Käufler <hanneskaeufler@users.noreply.github.com> 2023-03-03 21:41:36 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-03 12:41:36 -0800
commit7e5dddd2fa3d940ebfff0ba2f24d1789f41212ee (patch)
tree6b0626fd146d8d5c06f049ae12d83f2089f01d45 /docs/cli
parent838b37eed06799839280d09023256edec49cb01d (diff)
downloadbun-7e5dddd2fa3d940ebfff0ba2f24d1789f41212ee.tar.gz
bun-7e5dddd2fa3d940ebfff0ba2f24d1789f41212ee.tar.zst
bun-7e5dddd2fa3d940ebfff0ba2f24d1789f41212ee.zip
Fix broken async test example (#2291)
Diffstat (limited to 'docs/cli')
-rw-r--r--docs/cli/test.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cli/test.md b/docs/cli/test.md
index a700b24ca..9eef73c6d 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();
});