mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 14:08:11 +00:00
booking operations and trains scheduling also allocations
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { deriveScheduleDirection } from './derive-schedule-direction.util';
|
||||
|
||||
describe('deriveScheduleDirection', () => {
|
||||
it('returns IMPORT when origin is Djibouti', () => {
|
||||
expect(
|
||||
deriveScheduleDirection({ country: 'Djibouti' }, { country: 'Ethiopia' }),
|
||||
).toBe('IMPORT');
|
||||
});
|
||||
|
||||
it('returns EXPORT when destination is Djibouti and origin is not', () => {
|
||||
expect(
|
||||
deriveScheduleDirection({ country: 'Ethiopia' }, { country: 'Djibouti' }),
|
||||
).toBe('EXPORT');
|
||||
});
|
||||
|
||||
it('returns DOMESTIC for intra-Ethiopia routes', () => {
|
||||
expect(
|
||||
deriveScheduleDirection({ country: 'Ethiopia' }, { country: 'Ethiopia' }),
|
||||
).toBe('DOMESTIC');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user