2024-02-06 22:58:49 +01:00
|
|
|
import tap from 'tap';
|
2018-10-15 17:33:11 +02:00
|
|
|
|
2024-02-06 22:58:49 +01:00
|
|
|
import {createClient} from '../../index.js';
|
2024-12-17 19:41:00 +00:00
|
|
|
import {profile as dbProfile} from '../../p/db/index.js';
|
2018-10-15 17:33:11 +02:00
|
|
|
|
2024-12-17 19:41:00 +00:00
|
|
|
const client = createClient(dbProfile, 'public-transport/hafas-client:test');
|
2018-10-15 17:33:11 +02:00
|
|
|
|
2021-05-20 16:42:43 +01:00
|
|
|
tap.test('exposes the profile', (t) => {
|
2024-02-06 22:58:49 +01:00
|
|
|
t.ok(client.profile);
|
2024-12-17 19:41:00 +00:00
|
|
|
t.equal(client.profile.endpoint, dbProfile.endpoint);
|
2024-02-06 22:58:49 +01:00
|
|
|
t.end();
|
|
|
|
});
|