mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix broken async test example (#2291)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user