mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
refactor: wrap BigInt tests in describe block
Place BigInt tests inside of describe block to match test structure of the rest of the codebase.
This commit is contained in:
committed by
Jarred Sumner
parent
f0c283c632
commit
73ab469102
@@ -1,12 +1,14 @@
|
||||
import { describe, expect, it } from "bun:test";
|
||||
|
||||
it("BigInt compares correctly (literal)", () => {
|
||||
expect(42n).toBe(42n);
|
||||
});
|
||||
describe("BigInt", () => {
|
||||
it("compares correctly (literal)", () => {
|
||||
expect(42n).toBe(42n);
|
||||
});
|
||||
|
||||
it("BigInt compares correctly (object)", () => {
|
||||
expect(BigInt(42n)).toBe(BigInt(42n));
|
||||
expect(42n).toBe(BigInt(42n));
|
||||
expect(BigInt(Bun.inspect(42n).substring(0, 2))).toBe(BigInt(42n));
|
||||
expect(BigInt(42n).valueOf()).toBe(BigInt(42n));
|
||||
});
|
||||
it("compares correctly (object)", () => {
|
||||
expect(BigInt(42n)).toBe(BigInt(42n));
|
||||
expect(42n).toBe(BigInt(42n));
|
||||
expect(BigInt(Bun.inspect(42n).substring(0, 2))).toBe(BigInt(42n));
|
||||
expect(BigInt(42n).valueOf()).toBe(BigInt(42n));
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user