16 lines
529 B
TypeScript
16 lines
529 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|||
|
|
import { isActiveBookingAgent } from './bookingAgents'
|
||
|
|
|
||
|
|
describe('ocean booking agent candidates', () => {
|
||
|
|
it('accepts an active booking supplier', () => {
|
||
|
|
expect(isActiveBookingAgent({ category: 'BOOKING', status: 'ACTIVE' })).toBe(true)
|
||
|
|
})
|
||
|
|
|
||
|
|
it.each([
|
||
|
|
{ category: 'BOOKING', status: 'INACTIVE' },
|
||
|
|
{ category: 'TRUCKING', status: 'ACTIVE' },
|
||
|
|
])('rejects a non-eligible supplier: %o', (supplier) => {
|
||
|
|
expect(isActiveBookingAgent(supplier)).toBe(false)
|
||
|
|
})
|
||
|
|
})
|