Skip to content

Commit 2dd4573

Browse files
committed
test: correct test
1 parent a5b98f7 commit 2dd4573

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/factory.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ describe("fraciString", () => {
7272
it("should create a string fractional indexing utility", () => {
7373
const indexing = fraciString({ lengthBase, digitBase });
7474
// The base is cast to the correct type but is initially an array
75-
expect(Array.isArray(indexing.base)).toBe(true);
75+
expect(indexing.base).toEqual({
76+
type: "string",
77+
lengthBase,
78+
digitBase,
79+
});
7680

7781
const generator = indexing.generateKeyBetween(null, null);
7882
const key = generator.next().value;

0 commit comments

Comments
 (0)