]> git.giacomolli.uk - onechat/blobdiff - whatsapp_find_test.go
Show styled replies only on terminal output
[onechat] / whatsapp_find_test.go
index b0d20be9a04665a297c3c12fa3feef9aa5794b4e..ada162712eab2e53850efc9fa2ece97058027148 100644 (file)
@@ -99,10 +99,12 @@ func TestWhatsAppFindWithoutALink(t *testing.T) {
 func TestAgentFindsAWhatsAppContact(t *testing.T) {
        whatsapp, fake := whatsappStartTestLinked(t)
        whatsappTestContacts(t, whatsapp)
+
        server := newModelFake(t)
        server.reply = func(w http.ResponseWriter, call ModelFakeCall) {
                if call.number == 0 {
                        modelWriteEvents(w, modelCompletedEvent([]any{modelFunctionCallItem("fc_1", "call_1", "whatsapp_find", `{"name":"ana"}`)}, 100, 0, 5))
+
                        return
                }