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

1 import {describe,expect,it} from 'vitest';import {renderToStaticMarkup} from 'react-dom/server';import {DashboardView} from './dashboard/dashboard-view';
2 describe('DashboardView',()=>{it('renders actionable treasury sections and real links',()=>{const html=renderToStaticMarkup(<DashboardView data={{total:12,totalIrr:150000000,unknown:1,settled:7,needsReview:2}} recent={[]} />);expect(html).toContain('داشبورد خزانه‌داری');expect(html).toContain('نیازمند بررسی');expect(html).toContain('سلامت اتصال');expect(html).toContain('مغایرت‌گیری');expect(html).toContain('href="/payments"');expect(html).toContain('href="/reconciliation"');expect(html).not.toContain('href="#')})});