use crate::reply::roster::WsRow;
use crate::test_support::window::wall;
use crate::ui::Model;
#[test]
fn an_aimless_seat_composes_no_pin() {
let mut model = Model::default();
model.post_pin(true);
assert!(model.outbox.is_empty());
}
#[test]
fn a_row_with_no_entry_naming_it_wears_the_line_and_no_control() {
let quiet = super::line(&wall("home"));
assert!(quiet.contains("home"), "{quiet}");
let busy = super::line(&WsRow {
attention: 3,
running: true,
..wall("home")
});
assert!(
busy.contains("3 waiting") && busy.contains("running"),
"{busy}"
);
}