mirror of
https://github.com/kristoferssolo/traxor.git
synced 2025-10-21 20:10:35 +00:00
15 lines
490 B
Rust
15 lines
490 B
Rust
use ratatui::backend::TestBackend;
|
|
use ratatui::Terminal;
|
|
use traxor::event::EventHandler;
|
|
use traxor::tui::Tui;
|
|
|
|
#[test]
|
|
fn test_tui_new() {
|
|
let backend = TestBackend::new(10, 10);
|
|
let terminal = Terminal::new(backend).unwrap();
|
|
let events = EventHandler::new(250); // Dummy tick_rate
|
|
let _tui = Tui::new(terminal, events);
|
|
// Add assertions for initial state of Tui if applicable
|
|
// For example, if Tui has a field that should be initialized to a specific value
|
|
}
|