db-vendo-client/test/e2e/common.js
Jannis R 339d64e901
convert to ESM 💥📝
2022-11-18 19:20:03 +01:00

12 lines
336 B
JavaScript

import tap from 'tap'
import {createClient} from '../../index.js'
import {profile as vbbProfile} from '../../p/vbb/index.js'
const client = createClient(vbbProfile, 'public-transport/hafas-client:test')
tap.test('exposes the profile', (t) => {
t.ok(client.profile)
t.equal(client.profile.endpoint, vbbProfile.endpoint)
t.end()
})