Skip to content

Commit

Permalink
chore: remove useless tests grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Oct 22, 2024
1 parent fccd977 commit ccec820
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 245 deletions.
32 changes: 15 additions & 17 deletions packages/utils/src/big-int.test.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
import { BigIntMath } from "./big-int";
import { describe, expect, it } from "vitest";

describe("BigIntMath", () => {
describe("min", () => {
it("gets the correct minimum value", () =>
expect(BigIntMath.min(-1n, 0n, 1n)).toBe(-1n));
describe("min", () => {
it("gets the correct minimum value", () =>
expect(BigIntMath.min(-1n, 0n, 1n)).toBe(-1n));

it("returns the first value if only one value is passed", () =>
expect(BigIntMath.min(1n)).toBe(1n));
it("returns the first value if only one value is passed", () =>
expect(BigIntMath.min(1n)).toBe(1n));

it("returns 0n if no values is passed", () =>
expect(BigIntMath.min()).toBe(0n));
});
it("returns 0n if no values is passed", () =>
expect(BigIntMath.min()).toBe(0n));
});

describe("max", () => {
it("gets the correct maximum value", () =>
expect(BigIntMath.max(-1n, 0n, 1n)).toBe(1n));
describe("max", () => {
it("gets the correct maximum value", () =>
expect(BigIntMath.max(-1n, 0n, 1n)).toBe(1n));

it("returns the first value if only one value is passed", () =>
expect(BigIntMath.max(-1n)).toBe(-1n));
it("returns the first value if only one value is passed", () =>
expect(BigIntMath.max(-1n)).toBe(-1n));

it("returns 0n if no values is passed", () =>
expect(BigIntMath.max()).toBe(0n));
});
it("returns 0n if no values is passed", () =>
expect(BigIntMath.max()).toBe(0n));
});
Loading

0 comments on commit ccec820

Please sign in to comment.