mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-06 01:00:37 +02:00
18 lines
506 B
JavaScript
18 lines
506 B
JavaScript
import { describe, it } from 'mocha';
|
|
import { expect } from 'chai';
|
|
|
|
import defaultConfig from '../../../app/configurations/config.default';
|
|
|
|
describe('default configuration', () => {
|
|
describe('realTime', () => {
|
|
it('routeSelector should map the given props to something', () => {
|
|
const props = {
|
|
route: {
|
|
gtfsId: 'HSL:12345',
|
|
},
|
|
};
|
|
const result = defaultConfig.realTime.HSL.routeSelector(props);
|
|
expect(result).to.equal('12345');
|
|
});
|
|
});
|
|
});
|