Lines
100 %
Functions
Branches
use super::*;
use crate::form_render::fixture::assert_fixture;
use crate::form_render::{References, render_form};
use forms::FormValues;
#[test]
fn the_created_message_names_the_id() {
let id = Uuid::from_u128(7);
assert_eq!(created_message(id), format!("New commodity id: {id}"));
}
fn the_browser_fixture_of_the_commodity_create_form_is_up_to_date() {
let html = render_form(
&COMMODITY_CREATE,
&FormValues::default(),
&[],
SUBMIT_PATH,
&References::default(),
)
.expect("renders");
assert_fixture("commodity_create.html", &html);