File size: 441 Bytes
21dd449 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { describe, expect, it } from "vitest";
import { repoExists } from "./repo-exists";
describe("repoExists", () => {
it("should check if a repo exists", async () => {
const exists1 = await repoExists({ repo: { type: "model", name: "openai-community/gpt2" } });
expect(exists1).toBe(true);
const exists2 = await repoExists({ repo: { type: "model", name: "openai-community/gpt9000" } });
expect(exists2).toBe(false);
});
});
|