Skip to content

Commit 30d02eb

Browse files
author
Mishig
authored
[gguf] Fx type in "should parse a local file" (huggingface#660)
Follow up to huggingface#656 cc: @ngxson
1 parent b6c0b61 commit 30d02eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gguf/src/gguf.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ describe("gguf", () => {
237237
fs.writeFileSync(".cache/model.gguf", Buffer.from(arrayBuf));
238238

239239
const { metadata } = await gguf(".cache/model.gguf", { allowLocalFile: true });
240-
expect(metadata["general.name"]).toEqual("tinyllamas-stories-260k");
240+
expect(metadata).toMatchObject({ "general.name": "tinyllamas-stories-260k" });
241241
});
242242

243243
it("should detect sharded gguf filename", async () => {

0 commit comments

Comments
 (0)