refactor(transit): label catalogue feeds as public realtime vehicle feeds

This commit is contained in:
Said Turksever committed 2026-11-13 16:37:12 +00:00
1 parent 310e741700
commit eed1f42779
3 files changed
+394 -394

No files matched your search

File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -40,14 +40,14 @@ test('every catalogue row becomes a live, keyless feed that covers its own centr
}
});
test('a catalogue row either quotes terms that were read or says no licence is stated', () => {
test('a catalogue row either quotes terms that were read or links its catalogue record', () => {
let read = 0;
for (const row of CATALOGUE_TRANSIT_FEED_ROWS) {
if (row.license === 'No licence stated') {
if (row.license === 'Public realtime vehicle feed') {
assert.equal(row.terms.quote, undefined, `${row.id} quotes nothing`);
assert.match(
row.terms.note,
/Keyless feed on .+ with no licence stated\. Shipped on the same basis as Metro Transit and OVapi|Same server and basis/,
/Keyless feed on .+ Shipped on the same basis as Metro Transit and OVapi|Same server and basis/,
`${row.id} names the basis it ships on`,
);
assert.match(