mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
13 lines
259 B
TypeScript
13 lines
259 B
TypeScript
import { expect, it } from "bun:test";
|
|
|
|
it("Set is propperly formatted in Bun.inspect()", () => {
|
|
const set = new Set(["foo", "bar"]);
|
|
const formatted = Bun.inspect({ set });
|
|
expect(formatted).toBe(`{
|
|
set: Set(2) {
|
|
"foo",
|
|
"bar",
|
|
},
|
|
}`);
|
|
});
|