mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
11 lines
287 B
TypeScript
11 lines
287 B
TypeScript
import { expect, test } from "bun:test";
|
|
|
|
export const Infinity = 1 / 0;
|
|
|
|
test("Infinity", async () => {
|
|
expect(Infinity).toBe(globalThis.Infinity);
|
|
const Mod = await import(import.meta.path);
|
|
expect(Mod.Infinity).toBe(1 / 0);
|
|
expect(Mod.Infinity).toBe(globalThis.Infinity);
|
|
});
|