import { deriveTradeDirection } from './derive-trade-direction.util';

describe('deriveTradeDirection', () => {
  it('returns IMPORT when origin is Djibouti', () => {
    expect(deriveTradeDirection({ country: 'Djibouti' }, { country: 'Ethiopia' })).toBe(
      'IMPORT',
    );
  });

  it('returns EXPORT when destination is Djibouti and origin is not', () => {
    expect(deriveTradeDirection({ country: 'Ethiopia' }, { country: 'Djibouti' })).toBe(
      'EXPORT',
    );
  });

  it('returns DOMESTIC for intra-Ethiopia routes', () => {
    expect(deriveTradeDirection({ country: 'Ethiopia' }, { country: 'Ethiopia' })).toBe(
      'DOMESTIC',
    );
  });
});
