We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b98f7 commit 2dd4573Copy full SHA for 2dd4573
src/factory.test.ts
@@ -72,7 +72,11 @@ describe("fraciString", () => {
72
it("should create a string fractional indexing utility", () => {
73
const indexing = fraciString({ lengthBase, digitBase });
74
// The base is cast to the correct type but is initially an array
75
- expect(Array.isArray(indexing.base)).toBe(true);
+ expect(indexing.base).toEqual({
76
+ type: "string",
77
+ lengthBase,
78
+ digitBase,
79
+ });
80
81
const generator = indexing.generateKeyBetween(null, null);
82
const key = generator.next().value;
0 commit comments