test(graph): narrow summary owner and complete PE fixture facts

This commit is contained in:
morluto
2026-10-24 03:03:17 +08:00
parent 693ecec082
commit 80bb0b4f01
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -1097,7 +1097,10 @@ it.each([63, 64, 65, 10_000])(
] as const) {
const result = projectAnalysisView(duplicatedParent, view);
if (!result.ok) throw result.error;
if (result.value.kind === "summary")
if (
result.value.kind === "summary" &&
result.value.parent_operation === "analyze_javascript_application"
)
expect(result.value.summary.limitation_count).toBe(count);
if (count <= 65) {
expect(result.value.limitations).toEqual(messages);
@@ -34,6 +34,8 @@ it.each([1, 129])(
sha256: "0".repeat(64),
kind: "executable",
format: "pe",
executableRole: "application",
managed: false,
architecture: "x86_64",
availableArchitectures: ["x86_64"],
});