12 lines
613 B
TypeScript
12 lines
613 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { hasProcurementFeeDetails } from './procurementOutboundFees'
|
|
|
|
describe('procurement outbound fee notice', () => {
|
|
it('only reports when there is no current receivable fee detail', () => {
|
|
expect(hasProcurementFeeDetails([])).toBe(false)
|
|
expect(hasProcurementFeeDetails([{ direction: 'RECEIVABLE', sourceStatus: 'VOIDED' }])).toBe(false)
|
|
expect(hasProcurementFeeDetails([{ direction: 'PAYABLE', sourceStatus: 'ACTIVE' }])).toBe(false)
|
|
expect(hasProcurementFeeDetails([{ direction: 'RECEIVABLE', sourceStatus: 'ACTIVE' }])).toBe(true)
|
|
})
|
|
})
|