]> git.giacomolli.uk - onechat/blobdiff - telegram_test.go
Exempt tracker metadata from commit signing
[onechat] / telegram_test.go
index 8d033ab3aa62cd33ed408fe4835aef17fb301eb7..17bea0967d6b3cf2baed40e172f67d65398d6bdf 100644 (file)
@@ -182,7 +182,7 @@ func TestBotShowsOnlyTheStartAndTheEndOfASubagent(t *testing.T) {
        }, sent)
 }
 
-func TestBotSkipsTheWorkOfWhatsAppAndTheSchedules(t *testing.T) {
+func TestBotSkipsExternalWorkAndSchedules(t *testing.T) {
        bot := &TelegramBot{
                ready: make(chan struct{}, 1),
        }
@@ -199,6 +199,12 @@ func TestBotSkipsTheWorkOfWhatsAppAndTheSchedules(t *testing.T) {
                Text:   "[Schedule 1] Sunday 2026-11-08 20:05 -03:00, once",
        })
 
+       bot.Notify(Event{
+               Kind:   "work",
+               Source: notifySource,
+               Text:   "Untrusted external data.",
+       })
+
        require.Empty(t, bot.queue)
 }