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

13 lines
340 B
JavaScript
Raw Normal View History

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