mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
test that the profile is exposed ✅
This commit is contained in:
parent
95839372b5
commit
1a4c09ab4e
2 changed files with 16 additions and 0 deletions
15
test/common.js
Normal file
15
test/common.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'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()
|
||||
})
|
|
@ -1,5 +1,6 @@
|
|||
'use strict'
|
||||
|
||||
require('./common')
|
||||
require('./db')
|
||||
require('./vbb')
|
||||
require('./bvg')
|
||||
|
|
Loading…
Add table
Reference in a new issue