Skip to content

Commit

Permalink
feat(im): add test for text formats
Browse files Browse the repository at this point in the history
  • Loading branch information
crispgm committed Aug 29, 2023
1 parent 8a9aef7 commit b69151b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ func TestPostText(t *testing.T) {
assert.Equal(t, 0, resp.Code)
assert.NotEmpty(t, resp.Data.MessageID)
}
resp, err = bot.PostText("PostText: with formats <b>Bold</b> <i>italic</i> <u>Underline</u> <s>strikethrough</s> [Link](https://bytedance.com/)", WithChatID(testGroupChatID))
if assert.NoError(t, err) {
assert.Equal(t, 0, resp.Code)
assert.NotEmpty(t, resp.Data.MessageID)
}
}

func TestPostTextMention(t *testing.T) {
Expand Down

0 comments on commit b69151b

Please sign in to comment.