mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 14:49:36 +02:00
disable enrichStations for tests
This commit is contained in:
parent
942972d5f0
commit
a624e62172
13 changed files with 13 additions and 13 deletions
|
@ -3,7 +3,7 @@ import {createClient} from '../../index.js'
|
|||
import {profile as dbProfile} from './index.js'
|
||||
|
||||
// Pick a descriptive user agent! hafas-client won't work with this string.
|
||||
const client = createClient(dbProfile, 'hafas-client-example')
|
||||
const client = createClient(dbProfile, 'hafas-client-example', {enrichStations: true})
|
||||
|
||||
const berlinJungfernheide = '8011167'
|
||||
const münchenHbf = '8000261'
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/db/index.js';
|
|||
const res = require('./fixtures/db-arrivals.json');
|
||||
import {dbArrivals as expected} from './fixtures/db-arrivals.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/db/index.js';
|
|||
const res = require('./fixtures/db-departures-regio-guide.json');
|
||||
import {dbDepartures as expected} from './fixtures/db-departures-regio-guide.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/db/index.js';
|
|||
const res = require('./fixtures/db-journey.json');
|
||||
import {dbJourney as expected} from './fixtures/db-journey.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/db/index.js';
|
|||
const res = require('./fixtures/db-refresh-journey.json');
|
||||
import {dbJourney as expected} from './fixtures/db-refresh-journey.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/dbnav/index.js';
|
|||
const res = require('./fixtures/dbnav-departures.json');
|
||||
import {dbnavDepartures as expected} from './fixtures/dbnav-departures.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/dbnav/index.js';
|
|||
const res = require('./fixtures/dbnav-refresh-journey.json');
|
||||
import {dbNavJourney as expected} from './fixtures/dbnav-refresh-journey.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {profile as rawProfile} from '../p/dbnav/index.js';
|
|||
const res = require('./fixtures/dbnav-stop.json');
|
||||
import {dbnavDepartures as expected} from './fixtures/dbnav-stop.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import tap from 'tap';
|
|||
import {createClient} from '../../index.js';
|
||||
import {profile as dbProfile} from '../../p/db/index.js';
|
||||
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
|
||||
tap.test('exposes the profile', (t) => {
|
||||
t.ok(client.profile);
|
||||
|
|
|
@ -82,7 +82,7 @@ const assertValidTickets = (test, tickets) => {
|
|||
}
|
||||
};
|
||||
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
|
||||
const berlinHbf = '8011160';
|
||||
const münchenHbf = '8000261';
|
||||
|
|
|
@ -82,7 +82,7 @@ const assertValidTickets = (test, tickets) => {
|
|||
}
|
||||
};
|
||||
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(dbProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
|
||||
const berlinHbf = '8011160';
|
||||
const münchenHbf = '8000261';
|
||||
|
|
|
@ -4,7 +4,7 @@ import {createClient} from '../../index.js';
|
|||
import {profile as rawProfile} from '../../p/db/index.js';
|
||||
import {data as loyaltyCards} from '../../format/loyalty-cards.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import {createClient} from '../../index.js';
|
|||
import {profile as rawProfile} from '../../p/dbnav/index.js';
|
||||
import {data as loyaltyCards} from '../../format/loyalty-cards.js';
|
||||
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test');
|
||||
const client = createClient(rawProfile, 'public-transport/hafas-client:test', {enrichStations: false});
|
||||
const {profile} = client;
|
||||
|
||||
const opt = {
|
||||
|
|
Loading…
Add table
Reference in a new issue