Add formal to test enterprise webhook replay capability

This commit is contained in:
gitea committed 2026-09-12 22:54:45 +08:00
1 parent ce066206df
commit 35720fa36a
14 files changed
+1305 -263

No files matched your search

+9
View File
@@ -148,6 +148,15 @@ describe("CLI help execution via runCli", () => {
expect(result.stdout).toContain("--dry-run");
});
test("seal-use corps replay-test --help renders replay-test usage and options with exitCode 0", async () => {
const result = await runCli(["corps", "replay-test", "--help"]);
expect(result.exitCode).toBe(0);
expect(result.isError).toBe(false);
expect(result.stdout).toContain("seal-use corps replay-test");
expect(result.stdout).toContain("--sn-suffix");
expect(result.stdout).toContain("--dry-run");
});
test("seal-use corps unknown-cmd --help exits with code 2", async () => {
const result = await runCli(["corps", "unknown-cmd", "--help"]);
expect(result.exitCode).toBe(2);