Fix broken async test example (#2291)

This commit is contained in:
Hannes Käufler
2023-03-03 21:41:36 +01:00
committed by GitHub
parent 838b37eed0
commit 7e5dddd2fa

View File

@@ -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();
});