diff options
author | 2022-07-06 18:02:31 +0000 | |
---|---|---|
committer | 2022-07-06 14:00:47 -0700 | |
commit | 73ab469102fdeb10936f0091987a3eb69dab70eb (patch) | |
tree | 94c310ce0f90071c5495f5a522e74787a4283364 /test/bun.js/bigint.test.js | |
parent | f0c283c632816143d8eb3a9dc9ed41d326dcbde1 (diff) | |
download | bun-73ab469102fdeb10936f0091987a3eb69dab70eb.tar.gz bun-73ab469102fdeb10936f0091987a3eb69dab70eb.tar.zst bun-73ab469102fdeb10936f0091987a3eb69dab70eb.zip |
refactor: wrap BigInt tests in describe block
Place BigInt tests inside of describe block to match test structure of
the rest of the codebase.
Diffstat (limited to 'test/bun.js/bigint.test.js')
-rw-r--r-- | test/bun.js/bigint.test.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/bun.js/bigint.test.js b/test/bun.js/bigint.test.js index ba71f3f9f..daba739c0 100644 --- a/test/bun.js/bigint.test.js +++ b/test/bun.js/bigint.test.js @@ -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)); + }); +})
\ No newline at end of file |