Lines
100 %
Functions
Branches
use super::*;
#[test]
fn account_row_links_to_the_manage_page_with_that_account() -> Result<(), askama::Error> {
let id = Uuid::from_u128(9);
let html = AccountTableTemplate {
accounts: vec![AccountView {
id,
name: "Cash".to_string(),
currency: None,
balance: None,
}],
}
.render()?;
assert!(html.contains(&format!(r#"href="/account/manage?account={id}""#)));
assert!(!html.contains("/account/edit/"));
Ok(())