Skip to content

Commit e003bd6

Browse files
committed
fix: tests
1 parent 8e4e46e commit e003bd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/hub/src/lib/cache-management.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ describe("getBlobStat", () => {
103103
const blobStats = new Map<string, Stats>([["/fake/blob", { size: 1024 } as Stats]]);
104104
const result = await getBlobStat("/fake/blob", blobStats);
105105

106+
expect(lstat).not.toHaveBeenCalled();
106107
expect(result.size).toBe(1024);
107108
});
108109

@@ -118,6 +119,10 @@ describe("getBlobStat", () => {
118119
});
119120

120121
describe("parseRepoType", () => {
122+
test("should parse models repo type", () => {
123+
expect(parseRepoType("models")).toBe(REPO_TYPE_T.MODEL);
124+
});
125+
121126
test("should parse model repo type", () => {
122127
expect(parseRepoType("model")).toBe(REPO_TYPE_T.MODEL);
123128
});

0 commit comments

Comments
 (0)