From 072198bfc3cd99c6723823cee6ff9952fccc2508 Mon Sep 17 00:00:00 2001 From: Jonas Kubeler Date: Sun, 23 Jun 2024 17:44:53 +0200 Subject: [PATCH] added asText and asSnippet to TCCDocumentMessage text --- .../testDocumentMessageCorrectlyConstructedFromJson.st | 4 +++- .../TCTCMessageTests.class/methodProperties.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st index d6cc108b..5aaff8f3 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/instance/testDocumentMessageCorrectlyConstructedFromJson.st @@ -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. \ No newline at end of file + self assert: TCTMMocks mockDocumentFileName equals: documentMessage filename. + self assert: TCTMMocks mockDocumentFileName equals: documentMessage asSnippet. + self assert: TCTMMocks mockDocumentFileName equals: documentMessage asText. \ No newline at end of file diff --git a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json index 632507db..43619434 100644 --- a/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json +++ b/packages/TelegramClientTests-Core.package/TCTCMessageTests.class/methodProperties.json @@ -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",