import { describe, expect, it } from 'vitest'; import { isAfterSaleRefundMethod } from '../src/services/afterSaleCostPostingService'; describe('afterSaleCostPostingService', () => { it('treats refund/return/compensate as refund methods', () => { expect(isAfterSaleRefundMethod('refund')).toBe(true); expect(isAfterSaleRefundMethod('return')).toBe(true); expect(isAfterSaleRefundMethod('compensate')).toBe(true); expect(isAfterSaleRefundMethod('replace')).toBe(false); expect(isAfterSaleRefundMethod('')).toBe(false); }); });