cause: "must be a child",
},
}
+
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
arguments := `{"source":"` + tc.source + `","agent":"` + tc.agent + `"}`
whatsapp.Command("status", func(text string) {
answer = text
})
+
require.Contains(t, answer, "WhatsApp is not linked.")
require.Contains(t, answer, "WhatsApp routes:\nwhatsapp:"+whatsappTestFamily.String()+" -> Garden")
}
text: `{"whatsapp:example@lid":""}`,
},
}
+
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
path := filepath.Join(t.TempDir(), "routes.json")