refactor: require target for message actions
This commit is contained in:
1 parent
87cecd0268
commit
6e4d86f426
38 files changed
+517
-184
No files matched your search
@@ -88,7 +88,7 @@ describe("messageCommand", () => {
|
||||
const deps = makeDeps();
|
||||
await messageCommand(
|
||||
{
|
||||
to: "123",
|
||||
target: "123",
|
||||
message: "hi",
|
||||
},
|
||||
deps,
|
||||
@@ -104,7 +104,7 @@ describe("messageCommand", () => {
|
||||
await expect(
|
||||
messageCommand(
|
||||
{
|
||||
to: "123",
|
||||
target: "123",
|
||||
message: "hi",
|
||||
},
|
||||
deps,
|
||||
@@ -120,7 +120,7 @@ describe("messageCommand", () => {
|
||||
{
|
||||
action: "send",
|
||||
channel: "whatsapp",
|
||||
to: "+15551234567",
|
||||
target: "+15551234567",
|
||||
message: "hi",
|
||||
},
|
||||
deps,
|
||||
@@ -135,7 +135,7 @@ describe("messageCommand", () => {
|
||||
{
|
||||
action: "poll",
|
||||
channel: "discord",
|
||||
to: "channel:123456789",
|
||||
target: "channel:123456789",
|
||||
pollQuestion: "Snack?",
|
||||
pollOption: ["Pizza", "Sushi"],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user