Skip to content

Commit 28f6002

Browse files
Copilotsroussey
andcommitted
Fix test failures - add label index and correct URL encoding assertion
Co-authored-by: sroussey <127349+sroussey@users.noreply.github.com>
1 parent a0a76f1 commit 28f6002

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/storage/src/tabular/__tests__/HuggingFaceTabularStorage.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ describe("HuggingFaceTabularStorage", () => {
224224
"default",
225225
"train",
226226
schema,
227-
["id"] as const
227+
["id"] as const,
228+
{ indexes: [["label"]] }
228229
);
229230
});
230231

@@ -507,7 +508,7 @@ describe("HuggingFaceTabularStorage", () => {
507508
await storage.get({ id: "test's value" });
508509

509510
expect(mockFetch).toHaveBeenCalledWith(
510-
expect.stringContaining("test%5C's%20value"),
511+
expect.stringContaining("where=id%3D%27test%5C%27s"),
511512
expect.any(Object)
512513
);
513514
});

0 commit comments

Comments
 (0)