integration tests: update mocked when, adapt to latest schedules, re-add fixtures

This commit is contained in:
Jannis R 2022-11-09 21:21:55 +01:00
parent 198d50e260
commit 0d965c585d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
37 changed files with 38746 additions and 47 deletions

View file

@ -6,7 +6,7 @@ import {profile as blsProfile} from '../../p/bls/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
import {testJourneysStationToAddress} from './lib/journeys-station-to-address.js' import {testJourneysStationToAddress} from './lib/journeys-station-to-address.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(blsProfile.timezone, blsProfile.locale, T_MOCK) const when = createWhen(blsProfile.timezone, blsProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -27,7 +27,7 @@ import {testReachableFrom} from './lib/reachable-from.js'
import {testRemarks} from './lib/remarks.js' import {testRemarks} from './lib/remarks.js'
import {testLines} from './lib/lines.js' import {testLines} from './lib/lines.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(bvgProfile.timezone, bvgProfile.locale, T_MOCK) const when = createWhen(bvgProfile.timezone, bvgProfile.locale, T_MOCK)
const { const {

View file

@ -19,7 +19,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(cflProfile.timezone, cflProfile.locale, T_MOCK) const when = createWhen(cflProfile.timezone, cflProfile.locale, T_MOCK)
const cfg = { const cfg = {
@ -69,7 +69,7 @@ const client = createClient(cflProfile, 'public-transport/hafas-client:test')
const ettelbruck = '9258199' const ettelbruck = '9258199'
const mersch = '9864348' const mersch = '9864348'
const luxembourgGareCentrale = '200405059' const luxembourgGareCentrale = '9217081'
tap.test('journeys  Ettelbruck to Luxembourg', async (t) => { tap.test('journeys  Ettelbruck to Luxembourg', async (t) => {
const res = await client.journeys(ettelbruck, luxembourgGareCentrale, { const res = await client.journeys(ettelbruck, luxembourgGareCentrale, {

View file

@ -15,7 +15,7 @@ import {testArrivals} from './lib/arrivals.js'
import {testJourneysWithDetour} from './lib/journeys-with-detour.js' import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1652175000 * 1000 // 2022-05-10T11:30+02:00 const T_MOCK = 1670310000 * 1000 // 2022-12-06T08:00:00+01:00
const when = createWhen(cmtaProfile.timezone, cmtaProfile.locale, T_MOCK) const when = createWhen(cmtaProfile.timezone, cmtaProfile.locale, T_MOCK)
const cfg = { const cfg = {
@ -93,7 +93,7 @@ tap.test('Domain to 1104 Elm Street, Austin, TX 78703', async (t) => {
tap.test('Domain to WHOLE FOODS MARKET - ARBOR TRAILS', async (t) => { tap.test('Domain to WHOLE FOODS MARKET - ARBOR TRAILS', async (t) => {
const wholeFoodsMarket = { const wholeFoodsMarket = {
type: 'location', type: 'location',
id: '9893387', id: '9893207',
poi: true, poi: true,
name: 'WHOLE FOODS MARKET - ARBOR TRAILS', name: 'WHOLE FOODS MARKET - ARBOR TRAILS',
latitude: 30.22026, latitude: 30.22026,

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as dartProfile} from '../../p/dart/index.js' import {profile as dartProfile} from '../../p/dart/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(dartProfile.timezone, dartProfile.locale, T_MOCK) const when = createWhen(dartProfile.timezone, dartProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -10,7 +10,7 @@ import {testArrivals} from './lib/arrivals.js'
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o) const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(dbBusradarNrwProfile.timezone, dbBusradarNrwProfile.locale, T_MOCK) const when = createWhen(dbBusradarNrwProfile.timezone, dbBusradarNrwProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -29,7 +29,7 @@ import {testServerInfo} from './lib/server-info.js'
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o) const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const minute = 60 * 1000 const minute = 60 * 1000
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(dbProfile.timezone, dbProfile.locale, T_MOCK) const when = createWhen(dbProfile.timezone, dbProfile.locale, T_MOCK)
const cfg = { const cfg = {

File diff suppressed because one or more lines are too long

View file

@ -21,7 +21,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o) const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const T_MOCK = 1652175000 * 1000 // 2022-05-10T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(insaProfile.timezone, insaProfile.locale, T_MOCK) const when = createWhen(insaProfile.timezone, insaProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -18,7 +18,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(invgProfile.timezone, invgProfile.locale, T_MOCK) const when = createWhen(invgProfile.timezone, invgProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as ivbProfile} from '../../p/ivb/index.js' import {profile as ivbProfile} from '../../p/ivb/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(ivbProfile.timezone, ivbProfile.locale, T_MOCK) const when = createWhen(ivbProfile.timezone, ivbProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as kvbProfile} from '../../p/kvb/index.js' import {profile as kvbProfile} from '../../p/kvb/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(kvbProfile.timezone, kvbProfile.locale, T_MOCK) const when = createWhen(kvbProfile.timezone, kvbProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -1,7 +1,8 @@
import isRoughlyEqual from 'is-roughly-equal' import isRoughlyEqual from 'is-roughly-equal'
const testJourneysStationToPoi = async (cfg) => { const testJourneysStationToPoi = async (cfg) => {
const {test: t, res, validate, fromId} = cfg const {test: t, res, validate} = cfg
const fromIds = cfg.fromIds || (cfg.fromId ? [cfg.fromId] : [])
const {id, name, latitude, longitude} = cfg.to const {id, name, latitude, longitude} = cfg.to
validate(t, res, 'journeysResult', 'res') validate(t, res, 'journeysResult', 'res')
@ -12,12 +13,12 @@ const testJourneysStationToPoi = async (cfg) => {
const j = journeys[i] const j = journeys[i]
let o = j.legs[0].origin let o = j.legs[0].origin
let oN = `res.journeys[0].legs[0].destination` const oN = `res.journeys[0].legs[0].destination`
if (o.station) { t.ok(
o = o.station fromIds.includes(o.id) ||
oN += '.station' (o.station && fromIds.includes(o.station.id)),
} `invalid ${oN}.legs[0].origin`
t.equal(o.id, fromId) )
let d = j.legs[j.legs.length - 1].destination let d = j.legs[j.legs.length - 1].destination
let dN = `res.journeys[${i}].legs[${j.legs.length - 1}].destination` let dN = `res.journeys[${i}].legs[${j.legs.length - 1}].destination`

View file

@ -13,7 +13,7 @@ import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(mobilNrwProfile.timezone, mobilNrwProfile.locale, T_MOCK) const when = createWhen(mobilNrwProfile.timezone, mobilNrwProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -19,7 +19,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1652175000 * 1000 // 2022-05-10T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(mobiliteitLuProfile.timezone, mobiliteitLuProfile.locale, T_MOCK) const when = createWhen(mobiliteitLuProfile.timezone, mobiliteitLuProfile.locale, T_MOCK)
const cfg = { const cfg = {
@ -133,7 +133,7 @@ tap.test('Luxembourg to Ettelbruck, Rue des Romains 4', async (t) => {
tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => { tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => {
const centreHospitalier = { const centreHospitalier = {
type: 'location', type: 'location',
id: '980050385', id: '980054622',
poi: true, poi: true,
name: 'Ettelbruck, Centre Hospitalier du Nord (CHDN)', name: 'Ettelbruck, Centre Hospitalier du Nord (CHDN)',
latitude: 49.853519, latitude: 49.853519,

View file

@ -20,7 +20,8 @@ import {testDeparturesInDirection} from './lib/departures-in-direction.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1670310000 * 1000 // 2022-12-06T08:00:00+01:00
// const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(nahshProfile.timezone, nahshProfile.locale, T_MOCK) const when = createWhen(nahshProfile.timezone, nahshProfile.locale, T_MOCK)
const cfg = { const cfg = {
@ -63,6 +64,7 @@ const assertValidPrice = (t, p) => {
const client = createClient(nahshProfile, 'public-transport/hafas-client:test') const client = createClient(nahshProfile, 'public-transport/hafas-client:test')
const kielHbf = '9049079' const kielHbf = '9049079'
const kielHbf2 = '9049076'
const flensburg = '9027253' const flensburg = '9027253'
const luebeckHbf = '9057819' const luebeckHbf = '9057819'
const husum = '9044660' const husum = '9044660'
@ -126,7 +128,7 @@ tap.test('Kiel Hbf to Berliner Str. 80, Husum', async (t) => {
test: t, test: t,
res, res,
validate, validate,
fromId: kielHbf, fromIds: [kielHbf, kielHbf2],
to: berlinerStr to: berlinerStr
}) })
t.end() t.end()
@ -150,7 +152,7 @@ tap.test('Kiel Hbf to Holstentor', async (t) => {
test: t, test: t,
res, res,
validate, validate,
fromId: kielHbf, fromIds: [kielHbf, kielHbf2],
to: holstentor to: holstentor
}) })
t.end() t.end()

View file

@ -17,7 +17,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o) const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(nvvProfile.timezone, nvvProfile.locale, T_MOCK) const when = createWhen(nvvProfile.timezone, nvvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -20,7 +20,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testDeparturesInDirection} from './lib/departures-in-direction.js' import {testDeparturesInDirection} from './lib/departures-in-direction.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(oebbProfile.timezone, oebbProfile.locale, T_MOCK) const when = createWhen(oebbProfile.timezone, oebbProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as oövvProfile} from '../../p/ooevv/index.js' import {profile as oövvProfile} from '../../p/ooevv/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(oövvProfile.timezone, oövvProfile.locale, T_MOCK) const when = createWhen(oövvProfile.timezone, oövvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -13,7 +13,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(pkpProfile.timezone, pkpProfile.locale, T_MOCK) const when = createWhen(pkpProfile.timezone, pkpProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -12,7 +12,7 @@ import {testEarlierLaterJourneys} from './lib/earlier-later-journeys.js'
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(rejseplanenProfile.timezone, rejseplanenProfile.locale, T_MOCK) const when = createWhen(rejseplanenProfile.timezone, rejseplanenProfile.locale, T_MOCK)
const validate = createValidate({ const validate = createValidate({

View file

@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(rmvProfile.timezone, rmvProfile.locale, T_MOCK) const when = createWhen(rmvProfile.timezone, rmvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -10,7 +10,7 @@ import {testRefreshJourney} from './lib/refresh-journey.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(rsagProfile.timezone, rsagProfile.locale, T_MOCK) const when = createWhen(rsagProfile.timezone, rsagProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -18,7 +18,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testDeparturesInDirection} from './lib/departures-in-direction.js' import {testDeparturesInDirection} from './lib/departures-in-direction.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(saarfahrplanProfile.timezone, saarfahrplanProfile.locale, T_MOCK) const when = createWhen(saarfahrplanProfile.timezone, saarfahrplanProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as salzburgProfile} from '../../p/salzburg/index.js' import {profile as salzburgProfile} from '../../p/salzburg/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(salzburgProfile.timezone, salzburgProfile.locale, T_MOCK) const when = createWhen(salzburgProfile.timezone, salzburgProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -16,7 +16,7 @@ import {testArrivals} from './lib/arrivals.js'
import {testJourneysWithDetour} from './lib/journeys-with-detour.js' import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(sMunichProfile.timezone, sMunichProfile.locale, T_MOCK) const when = createWhen(sMunichProfile.timezone, sMunichProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(sncbProfile.timezone, sncbProfile.locale, T_MOCK) const when = createWhen(sncbProfile.timezone, sncbProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as stvProfile} from '../../p/stv/index.js' import {profile as stvProfile} from '../../p/stv/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(stvProfile.timezone, stvProfile.locale, T_MOCK) const when = createWhen(stvProfile.timezone, stvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -9,7 +9,7 @@ import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
import {testServerInfo} from './lib/server-info.js' import {testServerInfo} from './lib/server-info.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(svvProfile.timezone, svvProfile.locale, T_MOCK) const when = createWhen(svvProfile.timezone, svvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -6,7 +6,7 @@ import {profile as tpgProfile} from '../../p/tpg/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
import {testJourneysStationToAddress} from './lib/journeys-station-to-address.js' import {testJourneysStationToAddress} from './lib/journeys-station-to-address.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(tpgProfile.timezone, tpgProfile.locale, T_MOCK) const when = createWhen(tpgProfile.timezone, tpgProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -18,7 +18,7 @@ import {testArrivals} from './lib/arrivals.js'
import {testJourneysWithDetour} from './lib/journeys-with-detour.js' import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(vbbProfile.timezone, vbbProfile.locale, T_MOCK) const when = createWhen(vbbProfile.timezone, vbbProfile.locale, T_MOCK)
const { const {

View file

@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
import {testReachableFrom} from './lib/reachable-from.js' import {testReachableFrom} from './lib/reachable-from.js'
const T_MOCK = 1652175000 * 1000 // 2022-05-10T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(vbnProfile.timezone, vbnProfile.locale, T_MOCK) const when = createWhen(vbnProfile.timezone, vbnProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as vorProfile} from '../../p/vor/index.js' import {profile as vorProfile} from '../../p/vor/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(vorProfile.timezone, vorProfile.locale, T_MOCK) const when = createWhen(vorProfile.timezone, vorProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -14,7 +14,7 @@ import {testDepartures} from './lib/departures.js'
import {testDeparturesInDirection} from './lib/departures-in-direction.js' import {testDeparturesInDirection} from './lib/departures-in-direction.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1668495600 * 1000 // 2022-11-15T08:00:00+01:00
const when = createWhen(vrnProfile.timezone, vrnProfile.locale, T_MOCK) const when = createWhen(vrnProfile.timezone, vrnProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -12,7 +12,7 @@ import {testEarlierLaterJourneys} from './lib/earlier-later-journeys.js'
import {testDepartures} from './lib/departures.js' import {testDepartures} from './lib/departures.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1652175000 * 1000 // 2022-05-10T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(vsnProfile.timezone, vsnProfile.locale, T_MOCK) const when = createWhen(vsnProfile.timezone, vsnProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
import {profile as vvvProfile} from '../../p/vvv/index.js' import {profile as vvvProfile} from '../../p/vvv/index.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js' import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
const T_MOCK = 1641897000 * 1000 // 2022-01-11T11:30:00+01 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(vvvProfile.timezone, vvvProfile.locale, T_MOCK) const when = createWhen(vvvProfile.timezone, vvvProfile.locale, T_MOCK)
const cfg = { const cfg = {

View file

@ -13,7 +13,7 @@ import {testDepartures} from './lib/departures.js'
import {testDeparturesInDirection} from './lib/departures-in-direction.js' import {testDeparturesInDirection} from './lib/departures-in-direction.js'
import {testArrivals} from './lib/arrivals.js' import {testArrivals} from './lib/arrivals.js'
const T_MOCK = 1657618200 * 1000 // 2022-07-12T11:30+02:00 const T_MOCK = 1671260400 * 1000 // 2022-12-17T08:00:00+01:00
const when = createWhen(zvvProfile.timezone, zvvProfile.locale, T_MOCK) const when = createWhen(zvvProfile.timezone, zvvProfile.locale, T_MOCK)
const validate = createValidate({ const validate = createValidate({