Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pengrad committed Nov 2, 2024
1 parent 097fc92 commit 77f7039
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ public void sendMessageToChannel() {
MessageTest.checkTextMessage(message);
assertEquals(url, message.entities()[0].url());
assertEquals(channelId, message.senderChat().id());
LinkPreviewOptions linkPreviewOptions = message.linkPreviewOptions();
assertTrue(linkPreviewOptions.isDisabled());
assertNull(linkPreviewOptions.url());
assertNull(linkPreviewOptions.preferSmallMedia());
assertNull(linkPreviewOptions.preferLargeMedia());
assertNull(linkPreviewOptions.showAboveText());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public static void checkTextMessage(Message message) {
assertFalse(message.isFromOffline());
assertFalse(message.hasMediaSpoiler());
assertNull(message.showCaptionAboveMedia());
assertNull(message.linkPreviewOptions());
assertNull(message.effectId());
assertNull(message.messageAutoDeleteTimerChanged());
assertNull(message.refundedPayment());
Expand Down

0 comments on commit 77f7039

Please sign in to comment.