mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
integration tests: update mocked when, adapt to latest schedules, re-add fixtures ✅
This commit is contained in:
parent
198d50e260
commit
0d965c585d
37 changed files with 38746 additions and 47 deletions
|
@ -6,7 +6,7 @@ import {profile as blsProfile} from '../../p/bls/index.js'
|
|||
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.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 cfg = {
|
||||
|
|
|
@ -27,7 +27,7 @@ import {testReachableFrom} from './lib/reachable-from.js'
|
|||
import {testRemarks} from './lib/remarks.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 {
|
||||
|
|
|
@ -19,7 +19,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
|
|||
import {testDepartures} from './lib/departures.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 cfg = {
|
||||
|
@ -69,7 +69,7 @@ const client = createClient(cflProfile, 'public-transport/hafas-client:test')
|
|||
|
||||
const ettelbruck = '9258199'
|
||||
const mersch = '9864348'
|
||||
const luxembourgGareCentrale = '200405059'
|
||||
const luxembourgGareCentrale = '9217081'
|
||||
|
||||
tap.test('journeys – Ettelbruck to Luxembourg', async (t) => {
|
||||
const res = await client.journeys(ettelbruck, luxembourgGareCentrale, {
|
||||
|
|
|
@ -15,7 +15,7 @@ import {testArrivals} from './lib/arrivals.js'
|
|||
import {testJourneysWithDetour} from './lib/journeys-with-detour.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 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) => {
|
||||
const wholeFoodsMarket = {
|
||||
type: 'location',
|
||||
id: '9893387',
|
||||
id: '9893207',
|
||||
poi: true,
|
||||
name: 'WHOLE FOODS MARKET - ARBOR TRAILS',
|
||||
latitude: 30.22026,
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as dartProfile} from '../../p/dart/index.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 cfg = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {testArrivals} from './lib/arrivals.js'
|
|||
|
||||
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 cfg = {
|
||||
|
|
|
@ -29,7 +29,7 @@ import {testServerInfo} from './lib/server-info.js'
|
|||
const isObj = o => o !== null && 'object' === typeof o && !Array.isArray(o)
|
||||
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 cfg = {
|
||||
|
|
38696
test/e2e/fixtures/requests_1722637011/recording.har
Normal file
38696
test/e2e/fixtures/requests_1722637011/recording.har
Normal file
File diff suppressed because one or more lines are too long
|
@ -21,7 +21,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
|
|||
|
||||
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 cfg = {
|
||||
|
|
|
@ -18,7 +18,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
|
|||
import {testDepartures} from './lib/departures.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as ivbProfile} from '../../p/ivb/index.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as kvbProfile} from '../../p/kvb/index.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 cfg = {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import isRoughlyEqual from 'is-roughly-equal'
|
||||
|
||||
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
|
||||
|
||||
validate(t, res, 'journeysResult', 'res')
|
||||
|
@ -12,12 +13,12 @@ const testJourneysStationToPoi = async (cfg) => {
|
|||
const j = journeys[i]
|
||||
|
||||
let o = j.legs[0].origin
|
||||
let oN = `res.journeys[0].legs[0].destination`
|
||||
if (o.station) {
|
||||
o = o.station
|
||||
oN += '.station'
|
||||
}
|
||||
t.equal(o.id, fromId)
|
||||
const oN = `res.journeys[0].legs[0].destination`
|
||||
t.ok(
|
||||
fromIds.includes(o.id) ||
|
||||
(o.station && fromIds.includes(o.station.id)),
|
||||
`invalid ${oN}.legs[0].origin`
|
||||
)
|
||||
|
||||
let d = j.legs[j.legs.length - 1].destination
|
||||
let dN = `res.journeys[${i}].legs[${j.legs.length - 1}].destination`
|
||||
|
|
|
@ -13,7 +13,7 @@ import {testDepartures} from './lib/departures.js'
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -19,7 +19,7 @@ import {journeysFailsWithNoProduct} from './lib/journeys-fails-with-no-product.j
|
|||
import {testDepartures} from './lib/departures.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 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) => {
|
||||
const centreHospitalier = {
|
||||
type: 'location',
|
||||
id: '980050385',
|
||||
id: '980054622',
|
||||
poi: true,
|
||||
name: 'Ettelbruck, Centre Hospitalier du Nord (CHDN)',
|
||||
latitude: 49.853519,
|
||||
|
|
|
@ -20,7 +20,8 @@ import {testDeparturesInDirection} from './lib/departures-in-direction.js'
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
@ -63,6 +64,7 @@ const assertValidPrice = (t, p) => {
|
|||
const client = createClient(nahshProfile, 'public-transport/hafas-client:test')
|
||||
|
||||
const kielHbf = '9049079'
|
||||
const kielHbf2 = '9049076'
|
||||
const flensburg = '9027253'
|
||||
const luebeckHbf = '9057819'
|
||||
const husum = '9044660'
|
||||
|
@ -126,7 +128,7 @@ tap.test('Kiel Hbf to Berliner Str. 80, Husum', async (t) => {
|
|||
test: t,
|
||||
res,
|
||||
validate,
|
||||
fromId: kielHbf,
|
||||
fromIds: [kielHbf, kielHbf2],
|
||||
to: berlinerStr
|
||||
})
|
||||
t.end()
|
||||
|
@ -150,7 +152,7 @@ tap.test('Kiel Hbf to Holstentor', async (t) => {
|
|||
test: t,
|
||||
res,
|
||||
validate,
|
||||
fromId: kielHbf,
|
||||
fromIds: [kielHbf, kielHbf2],
|
||||
to: holstentor
|
||||
})
|
||||
t.end()
|
||||
|
|
|
@ -17,7 +17,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
|
|||
|
||||
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 cfg = {
|
||||
|
|
|
@ -20,7 +20,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
|
|||
import {testDepartures} from './lib/departures.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as oövvProfile} from '../../p/ooevv/index.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 cfg = {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -12,7 +12,7 @@ import {testEarlierLaterJourneys} from './lib/earlier-later-journeys.js'
|
|||
import {testDepartures} from './lib/departures.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 validate = createValidate({
|
||||
|
|
|
@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {testRefreshJourney} from './lib/refresh-journey.js'
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -18,7 +18,7 @@ import {testJourneysWithDetour} from './lib/journeys-with-detour.js'
|
|||
import {testDepartures} from './lib/departures.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as salzburgProfile} from '../../p/salzburg/index.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 cfg = {
|
||||
|
|
|
@ -16,7 +16,7 @@ import {testArrivals} from './lib/arrivals.js'
|
|||
import {testJourneysWithDetour} from './lib/journeys-with-detour.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 cfg = {
|
||||
|
|
|
@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as stvProfile} from '../../p/stv/index.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 cfg = {
|
||||
|
|
|
@ -9,7 +9,7 @@ import {testArrivals} from './lib/arrivals.js'
|
|||
import {testReachableFrom} from './lib/reachable-from.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 cfg = {
|
||||
|
|
|
@ -6,7 +6,7 @@ import {profile as tpgProfile} from '../../p/tpg/index.js'
|
|||
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.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 cfg = {
|
||||
|
|
|
@ -18,7 +18,7 @@ import {testArrivals} from './lib/arrivals.js'
|
|||
import {testJourneysWithDetour} from './lib/journeys-with-detour.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 {
|
||||
|
|
|
@ -8,7 +8,7 @@ import {testJourneysStationToStation} from './lib/journeys-station-to-station.js
|
|||
import {testArrivals} from './lib/arrivals.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as vorProfile} from '../../p/vor/index.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 cfg = {
|
||||
|
|
|
@ -14,7 +14,7 @@ import {testDepartures} from './lib/departures.js'
|
|||
import {testDeparturesInDirection} from './lib/departures-in-direction.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 cfg = {
|
||||
|
|
|
@ -12,7 +12,7 @@ import {testEarlierLaterJourneys} from './lib/earlier-later-journeys.js'
|
|||
import {testDepartures} from './lib/departures.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 cfg = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as vvvProfile} from '../../p/vvv/index.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 cfg = {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {testDepartures} from './lib/departures.js'
|
|||
import {testDeparturesInDirection} from './lib/departures-in-direction.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 validate = createValidate({
|
||||
|
|
Loading…
Add table
Reference in a new issue