Skip to content

Commit 229d5b8

Browse files
committed
test: account for reconstructed trip gap rows
1 parent d9e4ea1 commit 229d5b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/trip-quality.test.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ test("packed trip attributes preserve quality metadata for the frontend", () =>
4040
test("implausible server rows stay visible as diagnostics but suppress fake values", () => {
4141
assert.match(tripCard, /_isInvalidTrip\(trip\)/);
4242
assert.match(tripCard, /if \(this\._isInvalidTrip\(trip\)\) return ""/);
43-
assert.match(tripCard, /invalid \? "" : this\._value\(trip\.attributes\?\.energy_per_100_km\)/);
43+
assert.match(tripCard, /invalid \|\| reconstructed \? "" : this\._value\(trip\.attributes\?\.energy_per_100_km\)/);
44+
assert.match(tripCard, /_isReconstructedGap\(trip\)/);
4445
assert.match(tripCard, /text\.invalidServerTrip/);
4546
});

0 commit comments

Comments
 (0)