Skip to content

Commit

Permalink
Add TestWelcomeMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukinix committed Jul 24, 2020
1 parent 8e383d8 commit a845e99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions troll_shield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,13 @@ func TestKickTroll(t *testing.T) {
kickTroll(&botnilson, &update, user, "@trollhouse")
}

func testWelcomeMessage(t *testing.T) {
botnilson := BotMockup{}
update := telegram.Update{}
message := telegram.Message{}
chat := telegram.Chat{}
message.Chat = &chat
update.Message = &message
user := telegram.User{}
welcomeMessage(&botnilson, &update, user)
}

0 comments on commit a845e99

Please sign in to comment.