mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
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) {}
|
|
});
|