Add explicit enterprise session commands
This commit is contained in:
1 parent
50a8beb3fd
commit
01ef5b37cb
10 files changed
+158
-25
No files matched your search
@@ -76,6 +76,8 @@ describe("renderHelp", () => {
|
||||
expect(help).toContain("发现与选择:");
|
||||
expect(help).toContain("企业接入:");
|
||||
expect(help).toContain("seal-use corps add-hose-persistent");
|
||||
expect(help).toContain("seal-use corps add-seal-bearer");
|
||||
expect(help).toContain("seal-use corps add-hose-web-session");
|
||||
expect(help).toContain("Hose 专属能力:");
|
||||
expect(help).toContain("seal-use corps probe-hose");
|
||||
expect(help).toContain("seal-use corps hose-staffs");
|
||||
@@ -110,6 +112,12 @@ describe("renderHelp", () => {
|
||||
expect(help).toContain("旧命令 add-hose 仍可用");
|
||||
});
|
||||
|
||||
test("documents the add-seal compatibility alias", () => {
|
||||
const help = renderHelp(["corps", "add-seal-bearer"]);
|
||||
expect(help).toContain("seal-use corps add-seal-bearer");
|
||||
expect(help).toContain("旧命令 add-seal 仍可用");
|
||||
});
|
||||
|
||||
test("throws usage error for unknown area or subcommand", () => {
|
||||
expect(() => renderHelp(["nonexistent-domain"])).toThrow(/Unknown command/);
|
||||
expect(() => renderHelp(["corps", "nonexistent-cmd"])).toThrow(/Unknown corps command/);
|
||||
|
||||
Reference in new issue
Block a user