Skip to content

Commit

Permalink
Add TestKickTroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukinix committed Jul 24, 2020
1 parent 7f13fa8 commit 8e383d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions troll_shield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,14 @@ func TestFindTrollHouses(t *testing.T) {
}
}

func TestKickTroll(t *testing.T) {
botnilson := BotMockup{}
update := telegram.Update{}
message := telegram.Message{}
chat := telegram.Chat{}
message.Chat = &chat
update.Message = &message
user := telegram.User{}
kickTroll(&botnilson, &update, user, "@trollhouse")
}

0 comments on commit 8e383d8

Please sign in to comment.