Spaces:
Paused
Paused
Download cli/src/__tests__/auth-command-registration.test.ts from testfirela/paperclip-app: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/testfirela/paperclip-app/resolve/main/cli/src/__tests__/auth-command-registration.test.ts
- Command line
-
hf download hf://spaces/testfirela/paperclip-app/cli/src/__tests__/auth-command-registration.test.ts
-
curl -L -o auth-command-registration.test.ts https://huggingface.co/spaces/testfirela/paperclip-app/resolve/main/cli/src/__tests__/auth-command-registration.test.ts
642 Bytes
| import { Command } from "commander"; | |
| import { describe, expect, it } from "vitest"; | |
| import { registerClientAuthCommands } from "../commands/client/auth.js"; | |
| describe("registerClientAuthCommands", () => { | |
| it("registers auth commands without duplicate company-id flags", () => { | |
| const program = new Command(); | |
| const auth = program.command("auth"); | |
| expect(() => registerClientAuthCommands(auth)).not.toThrow(); | |
| const login = auth.commands.find((command) => command.name() === "login"); | |
| expect(login).toBeDefined(); | |
| expect(login?.options.filter((option) => option.long === "--company-id")).toHaveLength(1); | |
| }); | |
| }); | |