Spaces:
Build error
Build error
Download frontend/__tests__/utils/parse-github-url.test.ts from Backup-bdg/OpenHands: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/frontend/__tests__/utils/parse-github-url.test.ts
- Command line
-
hf download hf://spaces/Backup-bdg/OpenHands/frontend/__tests__/utils/parse-github-url.test.ts
-
curl -L -o parse-github-url.test.ts https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/frontend/__tests__/utils/parse-github-url.test.ts
561 Bytes
| import { expect, test } from "vitest"; | |
| import { parseGithubUrl } from "../../src/utils/parse-github-url"; | |
| test("parseGithubUrl", () => { | |
| expect( | |
| parseGithubUrl("https://github.com/alexreardon/tiny-invariant"), | |
| ).toEqual(["alexreardon", "tiny-invariant"]); | |
| expect(parseGithubUrl("https://github.com/All-Hands-AI/OpenHands")).toEqual([ | |
| "All-Hands-AI", | |
| "OpenHands", | |
| ]); | |
| expect(parseGithubUrl("https://github.com/All-Hands-AI/")).toEqual([ | |
| "All-Hands-AI", | |
| "", | |
| ]); | |
| expect(parseGithubUrl("https://github.com/")).toEqual([]); | |
| }); | |