Skip to content

Commit

Permalink
added asText and asSnippet to TCCDocumentMessage text
Browse files Browse the repository at this point in the history
  • Loading branch information
jkubuni committed Jun 23, 2024
1 parent f278348 commit 072198b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ testDocumentMessageCorrectlyConstructedFromJson
documentMessageEvent := TCTMMocks mockDocumentMessageJsonFrom: chat id.
documentMessage := TCCMessage newFromMessageEvent: documentMessageEvent in: chat with: self core.

self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename.
self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename.
self assert: TCTMMocks mockDocumentFileName equals: documentMessage asSnippet.
self assert: TCTMMocks mockDocumentFileName equals: documentMessage asText.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"instance" : {
"testAnimatedStickerMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 14:35",
"testAnimatedStickerMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:45",
"testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 12:01",
"testDocumentMessageCorrectlyConstructedFromJson" : "JK 6/23/2024 17:43",
"testDocumentMessageTypeIdentifiedCorrectly" : "JK 6/23/2024 11:55",
"testMessageAddMembersCorrectlyConstructedFromJson" : "ek 8/5/2022 15:07",
"testMessageCorrectlyConstructedFromJson" : "js 7/31/2022 10:28",
Expand Down

0 comments on commit 072198b

Please sign in to comment.