thing-testkit tests: path from build
This commit is contained in:
parent
18432e65d1
commit
28d299b0ed
1 changed files with 2 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ fn f02_completes_with_an_external_step_whose_resume_command_the_surface_declares
|
|||
#[test]
|
||||
fn f03_places_an_absolute_target_over_an_image_from_its_catalog() {
|
||||
let (set, surface) = single_surface(Fixture::F03InputTarget);
|
||||
let [root_children @ ..] = box_children(&surface.root) else { unreachable!() };
|
||||
let root_children = box_children(&surface.root);
|
||||
let Node::Image(image) = &root_children[0] else { panic!("the Image comes first") };
|
||||
let [catalog] = &set.catalogs[..] else { panic!("one catalog expected") };
|
||||
assert_eq!(catalog.catalog_id.as_str(), image.catalog);
|
||||
|
|
@ -387,7 +387,7 @@ fn f06_scrolls_a_repeat_over_a_records_prefix() {
|
|||
assert_eq!(root.style.overflow, Overflow::Scroll);
|
||||
let [Node::Repeat(items)] = &root.children[..] else { panic!("one Repeat expected") };
|
||||
assert!(matches!(&items.collection, CollectionSource::Records(records) if !records.key_prefix.is_empty()));
|
||||
assert_eq!(items.key_member, path(&["id"]));
|
||||
assert_eq!(items.key_member, thing_testkit::build::path(&["id"]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue