mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 00:36:35 +00:00
fix(web): retain admitted provenance through incomplete traces
This commit is contained in:
1 parent
f6478c056f
commit
b4b5c37ab3
7 files changed
+327
-37
No files matched your search
@@ -323,7 +323,10 @@ it.each(["incomplete", "provider-failure"])(
|
||||
if (result.ok) throw new Error("expected original failure");
|
||||
expect(result.error).toBeInstanceOf(AnalysisOutputError);
|
||||
if (kind === "provider-failure") expect(result.error).toBe(primary);
|
||||
expect(result.error.partialObservation).toBeUndefined();
|
||||
expect(result.error.partialObservation).toMatchObject({
|
||||
kind: "web-trace-observation",
|
||||
analysis: "incomplete",
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
@@ -410,7 +413,7 @@ it.each([
|
||||
});
|
||||
} else
|
||||
expect(result.error.partialObservation).toHaveProperty(
|
||||
"kind",
|
||||
"resolver_observation.kind",
|
||||
"web-module-resolution",
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user