style(telegram): fix gofmt and gci lint errors in tests

This commit is contained in:
Badgerbees 2026-03-17 11:02:48 +07:00
parent bb5aa18f37
commit f66ee8f306

View file

@ -264,12 +264,10 @@ func TestSend_HTMLOverflow_WordBoundary(t *testing.T) {
foundFullWord := false foundFullWord := false
for i, call := range caller.calls { for i, call := range caller.calls {
var params map[string]interface{} var params map[string]any
_ = json.Unmarshal(call.Data.BodyRaw, &params) _ = json.Unmarshal(call.Data.BodyRaw, &params)
text, _ := params["text"].(string) text, _ := params["text"].(string)
// The word might be wrapped in tags if we were unlucky,
// but since it's plain text in our 'content', it should stay plain.
hasWord := strings.Contains(text, targetWord) hasWord := strings.Contains(text, targetWord)
t.Logf("Chunk %d length: %d, contains target word: %v", i, len(text), hasWord) t.Logf("Chunk %d length: %d, contains target word: %v", i, len(text), hasWord)