feat: switch message cli to subcommands
This commit is contained in:
1 parent
7ed53e243d
commit
f9be9ad426
14 files changed
+561
-263
No files matched your search
@@ -47,9 +47,12 @@ describe("cli program", () => {
|
||||
|
||||
it("runs message with required options", async () => {
|
||||
const program = buildProgram();
|
||||
await program.parseAsync(["message", "--to", "+1", "--message", "hi"], {
|
||||
from: "user",
|
||||
});
|
||||
await program.parseAsync(
|
||||
["message", "send", "--to", "+1", "--message", "hi"],
|
||||
{
|
||||
from: "user",
|
||||
},
|
||||
);
|
||||
expect(messageCommand).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user