DB E2E tickets test: add fixtures

Co-Authored-By: Jannis R <mail@jannisr.de>
This commit is contained in:
Paul Sutter 2023-12-27 08:35:10 +01:00 committed by Jannis R
parent 9365c00aaf
commit 784d273adf
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 823 additions and 0 deletions

View file

@ -144,6 +144,9 @@ tap.test('journeys  Berlin Schwedter Str. to München Hbf', async (t) => {
}); });
tap.test('refreshJourney valid tickets', async (t) => { tap.test('refreshJourney valid tickets', async (t) => {
const T_MOCK = 1710831600 * 1000; // 2024-03-19T08:00:00+01:00
const when = createWhen(dbProfile.timezone, dbProfile.locale, T_MOCK);
const journeysRes = await client.journeys(berlinHbf, münchenHbf, { const journeysRes = await client.journeys(berlinHbf, münchenHbf, {
results: 4, results: 4,
departure: when, departure: when,
@ -286,6 +289,10 @@ if (!process.env.VCR_MODE) {
} }
tap.test('refreshJourney', async (t) => { tap.test('refreshJourney', async (t) => {
const T_MOCK = 1710831600 * 1000; // 2024-03-19T08:00:00+01:00
const when = createWhen(dbProfile.timezone, dbProfile.locale, T_MOCK);
const validate = createValidate({...cfg, when});
await testRefreshJourney({ await testRefreshJourney({
test: t, test: t,
fetchJourneys: client.journeys, fetchJourneys: client.journeys,

File diff suppressed because one or more lines are too long