style(telegram): fix gofmt and gci lint errors in tests
This commit is contained in:
parent
bb5aa18f37
commit
f66ee8f306
1 changed files with 3 additions and 5 deletions
|
|
@ -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, ¶ms)
|
_ = json.Unmarshal(call.Data.BodyRaw, ¶ms)
|
||||||
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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue