This commit is contained in:
2026-08-17 16:45:46 +08:00
parent 4a9438315c
commit d95c90bd1a
48 changed files with 1217 additions and 374 deletions
@@ -0,0 +1,15 @@
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)
})
})