1
use super::*;
2
use crate::form_render::fixture::assert_fixture;
3
use crate::form_render::{References, render_form};
4
use forms::FormValues;
5

            
6
#[test]
7
2
fn the_created_message_names_the_id() {
8
2
    let id = Uuid::from_u128(7);
9
2
    assert_eq!(created_message(id), format!("Template created: {id}"));
10
2
}
11

            
12
#[test]
13
2
fn the_browser_fixture_of_the_template_create_form_is_up_to_date() {
14
2
    let html = render_form(
15
2
        &TEMPLATE_CREATE,
16
2
        &FormValues::default(),
17
2
        &[],
18
2
        SUBMIT_PATH,
19
2
        &References::default(),
20
2
    )
21
2
    .expect("renders");
22
2
    assert_fixture("template_create.html", &html);
23
2
}