1
use super::*;
2

            
3
#[test]
4
2
fn account_row_links_to_the_manage_page_with_that_account() -> Result<(), askama::Error> {
5
2
    let id = Uuid::from_u128(9);
6
2
    let html = AccountTableTemplate {
7
2
        accounts: vec![AccountView {
8
2
            id,
9
2
            name: "Cash".to_string(),
10
2
            currency: None,
11
2
            balance: None,
12
2
        }],
13
2
    }
14
2
    .render()?;
15
2
    assert!(html.contains(&format!(r#"href="/account/manage?account={id}""#)));
16
2
    assert!(!html.contains("/account/edit/"));
17
2
    Ok(())
18
2
}