mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
11 lines
287 B
TypeScript
11 lines
287 B
TypeScript
import { test, expect } 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);
|
|
});
|