mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
16 lines
352 B
JavaScript
16 lines
352 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const test = require('tape')
|
||
|
|
||
|
const createClient = require('..')
|
||
|
const vbbProfile = require('../p/vbb')
|
||
|
|
||
|
// todo: use a mock profile
|
||
|
const client = createClient(vbbProfile, 'public-transport/hafas-client:test')
|
||
|
|
||
|
test('exposes the profile', (t) => {
|
||
|
t.ok(client.profile)
|
||
|
t.equal(client.profile.endpoint, vbbProfile.endpoint)
|
||
|
t.end()
|
||
|
})
|