fix: use replay fallback for direct demo hashes

This commit is contained in:
lda
2026-07-12 03:15:19 +07:00 Verified
parent 2e15322cc9
commit 179cd0119e
6 changed files with 54 additions and 13 deletions
@@ -18,12 +18,25 @@ describe("presentationTargetHealth", () => {
target: "http://127.0.0.1:8765/rpc",
probe: "ready",
liveActive: false,
replayActive: false,
})).toMatchObject({
kind: "ready",
label: "Live target ready",
});
});
it("labels a reviewed replay selected alongside a healthy target", () => {
expect(presentationTargetHealth({
target: "http://127.0.0.1:8765/rpc",
probe: "ready",
liveActive: false,
replayActive: true,
})).toMatchObject({
kind: "replay",
label: "Replay evidence",
});
});
it("marks live active only after live timeline starts", () => {
expect(presentationTargetHealth({
target: "http://127.0.0.1:8765/rpc",
@@ -46,4 +59,4 @@ describe("presentationTargetHealth", () => {
label: "Replay fallback",
});
});
});
});