1 parent d9e4ea1 commit 229d5b8Copy full SHA for 229d5b8
1 file changed
tests/trip-quality.test.mjs
@@ -40,6 +40,7 @@ test("packed trip attributes preserve quality metadata for the frontend", () =>
40
test("implausible server rows stay visible as diagnostics but suppress fake values", () => {
41
assert.match(tripCard, /_isInvalidTrip\(trip\)/);
42
assert.match(tripCard, /if \(this\._isInvalidTrip\(trip\)\) return "—"/);
43
- assert.match(tripCard, /invalid \? "—" : this\._value\(trip\.attributes\?\.energy_per_100_km\)/);
+ assert.match(tripCard, /invalid \|\| reconstructed \? "—" : this\._value\(trip\.attributes\?\.energy_per_100_km\)/);
44
+ assert.match(tripCard, /_isReconstructedGap\(trip\)/);
45
assert.match(tripCard, /text\.invalidServerTrip/);
46
});
0 commit comments