From e7255b9e8cd3eca8ecce2ccd9d6478d468b2a019 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 14 Aug 2026 14:33:48 -0700 Subject: [PATCH] test(cli): remove duplicate skills verify error case (#123843) --- src/cli/skills-cli.commands.test.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/cli/skills-cli.commands.test.ts b/src/cli/skills-cli.commands.test.ts index b2351d6ae61d..9c58a4578c68 100644 --- a/src/cli/skills-cli.commands.test.ts +++ b/src/cli/skills-cli.commands.test.ts @@ -1297,24 +1297,6 @@ describe("skills cli commands", () => { expect(runtimeErrors).toStrictEqual([]); }); - it("fails before fetching when verification target resolution fails", async () => { - resolveClawHubSkillVerificationTargetMock.mockResolvedValueOnce({ - ok: false, - error: "Use either --version or --tag.", - }); - - await expect( - runCommand(["skills", "verify", "agentreceipt", "--version", "1.0.0", "--tag", "latest"]), - ).rejects.toThrow("__exit__:1"); - - expect(JSON.parse(runtimeStdout.at(-1) ?? "{}")).toEqual({ - error: "Use either --version or --tag.", - }); - expect(runtimeErrors).toStrictEqual([]); - expect(fetchClawHubSkillVerificationMock).not.toHaveBeenCalled(); - expect(fetchClawHubSkillCardMock).not.toHaveBeenCalled(); - }); - it("returns JSON when verify workspace selection fails", async () => { defaultRuntime.exit.mockImplementationOnce(() => undefined);