fixes
This commit is contained in:
@@ -6,6 +6,7 @@ use helpers::app_builder::TestAppBuilder;
|
||||
use helpers::snapshot_utils::{buffer_to_string, render_to_buffer};
|
||||
use helpers::test_data::{create_test_chat, TestChatBuilder, TestMessageBuilder};
|
||||
use insta::assert_snapshot;
|
||||
use tele_tui::types::{ChatId, MessageId};
|
||||
|
||||
#[test]
|
||||
fn snapshot_empty_chat() {
|
||||
@@ -154,8 +155,8 @@ fn snapshot_outgoing_read() {
|
||||
.build();
|
||||
|
||||
// Set last_read_outbox to simulate message being read
|
||||
if let Some(chat) = app.chats.iter_mut().find(|c| c.id == 123) {
|
||||
chat.last_read_outbox_message_id = 2;
|
||||
if let Some(chat) = app.chats.iter_mut().find(|c| c.id == ChatId::new(123)) {
|
||||
chat.last_read_outbox_message_id = MessageId::new(2);
|
||||
}
|
||||
|
||||
let buffer = render_to_buffer(80, 24, |f| {
|
||||
|
||||
Reference in New Issue
Block a user