File size: 403 Bytes
21dd449 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { assert, it, describe } from "vitest";
import { countCommits } from "./count-commits";
describe("countCommits", () => {
it("should fetch paginated commits from the repo", async () => {
const count = await countCommits({
repo: {
name: "openai-community/gpt2",
type: "model",
},
revision: "607a30d783dfa663caf39e06633721c8d4cfcd7e",
});
assert.equal(count, 26);
});
});
|