Skip to content

Commit

Permalink
Add poll message identification test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tebbe Ubben committed Jun 23, 2024
1 parent 827b1fd commit d6eb89d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
testing
testPollMessageTypeIdentifiedCorrectly

| pollMessageEvent chat pollMessage |

chat := TCTMMocks mockPrivateChat.
pollMessageEvent := TCTMMocks mockPollMessageJsonFrom: chat id.
pollMessage := TCCMessage newFromMessageEvent: pollMessageEvent in: chat with: self core.

self assert: TCCPollMessage equals: pollMessage class.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"testPhotoMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:31",
"testPhotoMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:26",
"testPollMessageCorrectlyConstructedFromJson" : "TU 6/23/2024 16:36",
"testPollMessageTypeIdentifiedCorrectly" : "TU 6/23/2024 16:41",
"testSenderNameInChannelMessage" : "tom.richter 7/25/2021 11:36",
"testSenderNameInNonChannelMessage" : "per 7/17/2021 16:13",
"testStaticStickerMessageCorrectlyContructedFromJson" : "JK 6/23/2024 14:34",
Expand Down

0 comments on commit d6eb89d

Please sign in to comment.