db-vendo-client/test/e2e/common.js

13 lines
336 B
JavaScript
Raw Permalink Normal View History

2022-05-07 16:17:37 +02:00
import tap from 'tap'
2022-05-07 16:17:37 +02:00
import {createClient} from '../../index.js'
import {profile as vbbProfile} from '../../p/vbb/index.js'
const client = createClient(vbbProfile, 'public-transport/hafas-client:test')
2021-05-20 16:42:43 +01:00
tap.test('exposes the profile', (t) => {
t.ok(client.profile)
t.equal(client.profile.endpoint, vbbProfile.endpoint)
t.end()
})