-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add poll message identification test
- Loading branch information
Tebbe Ubben
committed
Jun 23, 2024
1 parent
827b1fd
commit d6eb89d
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...ts-Core.package/TCTCMessageTests.class/instance/testPollMessageTypeIdentifiedCorrectly.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters