blob: 1723b7d477fb9efb2703b369f0249748adbc637e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import assert from "assert";
import { expect, test } from "bun:test";
// https://github.com/oven-sh/bun/issues/941
test("assert as a function does not throw", () => assert(true));
test("assert as a function does throw", () => {
try {
assert(false);
expect(false).toBe(true);
} catch (e) {}
});
|