mirror of
https://github.com/morluto/rea.git
synced 2026-11-18 04:34:13 +00:00
* fix(hopper): normalize string-backed addresses and update verification * feat(native): add inspection primitives, dispatch traces and approved UI observation * test: prioritize real artifact E2E and captured golden regressions * fix(process): queue observed output before reactive rendering actions * test: prune redundant cases and strengthen boundary assertions * fix(cli): route native value tracing through shared workflows * test: replace synthetic success with real workflows and captured data * fix(catalog): separate portable metadata from native host availability
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { collectInterfaceBuilderResourceKeys } from "./AppleAssetCatalogAnalysis.js";
|
|
|
|
describe("Apple asset catalog application workflow", () => {
|
|
it("joins only explicit resource-key fields with archive provenance", () => {
|
|
expect(
|
|
collectInterfaceBuilderResourceKeys([
|
|
{
|
|
id: "ib:Main.nib:object:2",
|
|
kind: "resource",
|
|
name: "Decorative image",
|
|
attributes: {
|
|
imageName: "Toolbar",
|
|
title: "not-an-asset-key",
|
|
image: 42,
|
|
},
|
|
evidence: [
|
|
{
|
|
artifact_path: "Contents/Resources/Main.nib",
|
|
artifact_sha256: "d".repeat(64),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: "ib:Main.nib:object:3",
|
|
kind: "control",
|
|
name: "Toolbar",
|
|
attributes: { title: "not-an-asset-key" },
|
|
evidence: [],
|
|
},
|
|
]),
|
|
).toEqual([
|
|
{
|
|
sourceNodeId: "ib:Main.nib:object:2",
|
|
sourcePath: "Contents/Resources/Main.nib",
|
|
sourceArchiveSha256: "d".repeat(64),
|
|
field: "imageName",
|
|
key: "Toolbar",
|
|
},
|
|
]);
|
|
});
|
|
});
|