UNPKG

@accounter/shaam-uniform-format-generator

Version:

Fully typed application that generates, parses, and validates SHAAM uniform format tax reports (INI.TXT and BKMVDATA.TXT).

30 lines (26 loc) 801 B
import { describe, expect, it } from 'vitest'; import { generateUniformFormatReport } from '../src/index.js'; describe('SHAAM Uniform Format Generator', () => { it('should generate a basic report', () => { const input = { business: { businessId: 'test123', name: 'Test Business', taxId: '123456789', reportingPeriod: { startDate: '2024-01-01', endDate: '2024-12-31', }, }, documents: [], journalEntries: [], accounts: [], inventory: [], }; const result = generateUniformFormatReport(input); expect(result).toBeDefined(); expect(result.iniText).toContain('A000'); expect(result.dataText).toContain('A100'); expect(result.summary.totalRecords).toBeGreaterThan(0); }); });