Refactor TDLib facade and local time handling
This commit is contained in:
@@ -4,7 +4,6 @@ mod helpers;
|
||||
|
||||
use helpers::fake_tdclient::FakeTdClient;
|
||||
use helpers::test_data::{create_test_chat, TestChatBuilder, TestMessageBuilder};
|
||||
use tele_tui::types::{ChatId, MessageId};
|
||||
|
||||
/// Test: Поиск по чатам фильтрует по названию
|
||||
#[tokio::test]
|
||||
@@ -213,7 +212,6 @@ async fn test_cancel_search_restores_normal_mode() {
|
||||
let client = client.with_chats(vec![chat1, chat2]);
|
||||
|
||||
// Симулируем: пользователь начал поиск
|
||||
let mut is_searching = true;
|
||||
let mut search_query = "mom".to_string();
|
||||
|
||||
// Фильтруем
|
||||
@@ -227,7 +225,7 @@ async fn test_cancel_search_restores_normal_mode() {
|
||||
assert_eq!(filtered.len(), 1);
|
||||
|
||||
// Пользователь нажал Esc
|
||||
is_searching = false;
|
||||
let is_searching = false;
|
||||
search_query.clear();
|
||||
|
||||
// После отмены видим все чаты
|
||||
|
||||
Reference in New Issue
Block a user