Spaces:
Paused
Paused
Download node_modules/@huggingface/hub/src/lib/count-commits.spec.ts from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40huggingface/hub/src/lib/count-commits.spec.ts
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@huggingface/hub/src/lib/count-commits.spec.ts
-
curl -L -o count-commits.spec.ts https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40huggingface/hub/src/lib/count-commits.spec.ts
403 Bytes
| 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); | |
| }); | |
| }); | |