Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

1 import {describe,expect,it} from 'vitest';import {renderToStaticMarkup} from 'react-dom/server';import {ReconciliationResultPanel} from './components';
2 describe('reconciliation UI',()=>{it('renders matched result',()=>expect(renderToStaticMarkup(<ReconciliationResultPanel result={{status:'MATCHED',paymentId:'p1'}}/>)).toContain('تطبیق قطعی'));it('renders ambiguous result as manual review',()=>expect(renderToStaticMarkup(<ReconciliationResultPanel result={{status:'AMBIGUOUS',candidateIds:['p1','p2']}}/>)).toContain('نیازمند بررسی دستی'));it('renders unmatched result',()=>expect(renderToStaticMarkup(<ReconciliationResultPanel result={{status:'UNMATCHED'}}/>)).toContain('تطبیقی پیدا نشد'))});