mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
test(apple): assert projected interface builder facts
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user