digitransit-ui/test/unit/configurations/config.default.test.js
Joona Olkkola ba4b8e112e Included tests for the configured routeSelector.
Fixed a bug while doing so.
2018-12-13 11:40:58 +02:00

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');
});
});
});