]> git.giacomolli.uk - onechat/blobdiff - whatsapp_inbox_test.go
Pass caller contexts through WhatsApp callbacks
[onechat] / whatsapp_inbox_test.go
index c3937dfe11067096fe58b5f9427320f19bf87e60..cea65fec15ca501cf6b62b97bd96de14efc38a08 100644 (file)
@@ -133,7 +133,7 @@ func TestWhatsAppGroupTurns(t *testing.T) {
        }
 }
 
-func TestWhatsAppTakesOnlyText(t *testing.T) {
+func TestWhatsAppSkipsExcludedMessages(t *testing.T) {
        at := time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC)
        testCases := []struct {
                name   string
@@ -175,16 +175,6 @@ func TestWhatsAppTakesOnlyText(t *testing.T) {
                                event.Info.Chat = types.StatusBroadcastJID
                        },
                },
-               {
-                       name: "a photo with a caption",
-                       change: func(event *events.Message) {
-                               event.Message = &waE2E.Message{
-                                       ImageMessage: &waE2E.ImageMessage{
-                                               Caption: new("look"),
-                                       },
-                               }
-                       },
-               },
                {
                        name: "a text of spaces",
                        change: func(event *events.Message) {