@xlink-network/xlink-sdk
Version:
21 lines (20 loc) • 544 B
JavaScript
import {
max,
sum
} from "../chunk-YV2TZGS6.mjs";
import "../chunk-ZLTA3V7U.mjs";
// src/utils/bigintHelpers.spec.ts
import { describe, it, expect } from "vitest";
describe("bigintHelpers", () => {
describe("sum", () => {
it("should return the sum of an array of bigints", () => {
expect(sum([1n, 2n, 3n])).toBe(6n);
});
});
describe("max", () => {
it("should return the max of an array of bigints", () => {
expect(max([1n, 2n, 3n])).toBe(3n);
});
});
});
//# sourceMappingURL=bigintHelpers.spec.mjs.map