test(apple): assert projected interface builder facts

This commit is contained in:
morluto
2026-10-23 21:13:20 +08:00
parent b305104e4a
commit 5e16e30c6b
2 changed files with 5 additions and 2 deletions
@@ -333,7 +333,7 @@ describe("keyed archive identity decoding", () => {
$top: { root: { UID: 1 } },
});
expect(parsed.objects.map(({ id }) => id)).toEqual(["1", "2"]);
expect(parsed.objects.map(({ id }) => id)).toEqual(["1", "2", "3"]);
expect(parsed.objects[0]?.attributes).toMatchObject({ archiveUID: 2 });
expect(parsed.connections).toContainEqual(
expect.objectContaining({
@@ -356,7 +356,10 @@ describe("keyed archive hierarchy coverage", () => {
bundlePath: bundle,
targetSha256: "f".repeat(64),
});
const values = result.graph.nodes[0]?.attributes.nibValues;
const objectNode = result.graph.nodes.find(
({ attributes }) => attributes.interface_builder_object_id === "0",
);
const values = objectNode?.attributes.nibValues;
expect(values).toMatchObject({
nan: { $plist_type: "real", value: "nan" },
positive: { $plist_type: "real", value: "+infinity" },