()
| 669 | |
| 670 | #[test] |
| 671 | fn test_login_skip_motd_on_narrow_console() { |
| 672 | let mut t = ClientTester::default(); |
| 673 | t.get_console().borrow_mut().set_size_chars(CharsXY::new(10, 0)); |
| 674 | t.get_service().borrow_mut().add_mock_login( |
| 675 | "the-username", |
| 676 | "the-password", |
| 677 | Ok(LoginResponse { |
| 678 | access_token: AccessToken::new("random token"), |
| 679 | motd: vec!["first line".to_owned(), "second line".to_owned()], |
| 680 | }), |
| 681 | ); |
| 682 | t.run(format!(r#"LOGIN "{}", "{}""#, "the-username", "the-password")) |
| 683 | .expect_access_token("random token") |
| 684 | .check(); |
| 685 | } |
| 686 | |
| 687 | #[test] |
| 688 | fn test_login_show_motd_on_wide_console() { |
nothing calls this directly
no test coverage detected