From b740539081c65cb984076465cbc83bd11c943e0c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 4 Jan 2022 15:31:11 +0100 Subject: [PATCH] =?UTF-8?q?parseTrip:=20remove=20trip.reachable=20?= =?UTF-8?q?=F0=9F=92=A5=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parse/trip.js | 2 +- test/fixtures/bvg-trip-with-occupancy.js | 1 - test/fixtures/oebb-trip.js | 1 - test/fixtures/rejseplanen-trip.js | 1 - test/fixtures/vbb-on-demand-trip.js | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/parse/trip.js b/parse/trip.js index ca5936a1..bf35afbd 100644 --- a/parse/trip.js +++ b/parse/trip.js @@ -27,7 +27,7 @@ const parseTrip = (ctx, t) => { // t = raw trip const trip = profile.parseJourneyLeg(ctx, fakeLeg, date) trip.id = trip.tripId delete trip.tripId - // todo [breaking]: delete trip.reachable + delete trip.reachable if (opt.scheduledDays) { const nrOfStopovers = t.stopL.length diff --git a/test/fixtures/bvg-trip-with-occupancy.js b/test/fixtures/bvg-trip-with-occupancy.js index 873727f8..6a16a9f5 100644 --- a/test/fixtures/bvg-trip-with-occupancy.js +++ b/test/fixtures/bvg-trip-with-occupancy.js @@ -3,7 +3,6 @@ module.exports = { id: '1|6849|3|86|1112021', direction: 'S Ostbahnhof via S+U Wedding', - reachable: true, line: { type: 'line', id: '147', diff --git a/test/fixtures/oebb-trip.js b/test/fixtures/oebb-trip.js index 480d7c47..5bc7b1f3 100644 --- a/test/fixtures/oebb-trip.js +++ b/test/fixtures/oebb-trip.js @@ -108,7 +108,6 @@ module.exports = { plannedDeparture: '2020-06-11T16:33:00+02:00', departureDelay: null, departurePrognosisType: 'prognosed', - reachable: true, line: { type: 'line', id: 'rj-742', diff --git a/test/fixtures/rejseplanen-trip.js b/test/fixtures/rejseplanen-trip.js index acf7610c..d11d4729 100644 --- a/test/fixtures/rejseplanen-trip.js +++ b/test/fixtures/rejseplanen-trip.js @@ -1,7 +1,6 @@ 'use strict' module.exports = { - reachable: true, // todo: drop this field id: '1|307|4|86|12102021', direction: 'CPH Lufthavn', currentLocation: { diff --git a/test/fixtures/vbb-on-demand-trip.js b/test/fixtures/vbb-on-demand-trip.js index 377978f8..87c94252 100644 --- a/test/fixtures/vbb-on-demand-trip.js +++ b/test/fixtures/vbb-on-demand-trip.js @@ -19,7 +19,6 @@ module.exports = { name: 'Verkehrsgesellschaft Teltow-Fläming mbH' }, }, - reachable: true, origin: {}, departure: null,