From 28d299b0edde2cf64d21cffb7de934f7164cfe4a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 27 Nov 2026 21:37:42 +0100 Subject: [PATCH] thing-testkit tests: path from build --- crates/thing-testkit/tests/fixtures.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/thing-testkit/tests/fixtures.rs b/crates/thing-testkit/tests/fixtures.rs index f2e2ed2..131355a 100644 --- a/crates/thing-testkit/tests/fixtures.rs +++ b/crates/thing-testkit/tests/fixtures.rs @@ -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]