mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
Make the round-trip case actually round-trip
The flip from an authored recipe back to the defaults was written with the retired pillar as the thing left out. With that pillar gone, both halves of the case sent the same full list, so the first read false where it expected true and the flip was never exercised at all. It now takes out a pillar that still exists, and says at the assertion why the two halves have to differ.
This commit is contained in:
1 parent
96c10f07e6
commit
ad1554a36f
1 file changed
+3
-1
@@ -361,6 +361,9 @@ describe("the resolved configured flag, on every wire that carries it", () => {
|
||||
|
||||
expectEveryWire(await readWires(), false);
|
||||
|
||||
// Narrowed: one pillar taken out. If both halves of this case send the
|
||||
// same list, the round trip proves nothing — it would read false at both
|
||||
// ends and the flip would never be exercised.
|
||||
await saveSelection([
|
||||
"BLOOD_PRESSURE",
|
||||
"GLYCAEMIA",
|
||||
@@ -368,7 +371,6 @@ describe("the resolved configured flag, on every wire that carries it", () => {
|
||||
"SLEEP",
|
||||
"ADIPOSITY",
|
||||
"WELLBEING",
|
||||
"LIPIDS",
|
||||
]);
|
||||
expectEveryWire(await readWires(), true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user