Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: the setup assistant shows when ruth is declared destroyed

This commit is contained in:
iris 2026-10-28 22:14:52 +01:00
commit 1ee481c0b1

View file

@ -33,6 +33,20 @@ test("a roster with ruth means she is not missing", async () => {
);
});
test("a ruth declared destroyed is missing; a stopped or paused one is not", async () => {
assert.equal(
await ruthIsMissing(answering([{ name: "ruth", wanted: "destroyed" }])),
true,
);
for (const wanted of ["up", "offline", "paused", null, undefined]) {
assert.equal(
await ruthIsMissing(answering([{ name: "ruth", wanted }])),
false,
String(wanted),
);
}
});
test("anything but a clear answer is not missing", async () => {
assert.equal(await ruthIsMissing(answering([], false)), false);
assert.equal(await ruthIsMissing(answering({ not: "a list" })), false);