Skip to content

Commit 8e383d8

Browse files
committed
Add TestKickTroll
1 parent 7f13fa8 commit 8e383d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

troll_shield_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,14 @@ func TestFindTrollHouses(t *testing.T) {
114114
}
115115
}
116116

117+
func TestKickTroll(t *testing.T) {
118+
botnilson := BotMockup{}
119+
update := telegram.Update{}
120+
message := telegram.Message{}
121+
chat := telegram.Chat{}
122+
message.Chat = &chat
123+
update.Message = &message
124+
user := telegram.User{}
125+
kickTroll(&botnilson, &update, user, "@trollhouse")
126+
}
127+

0 commit comments

Comments
 (0)