@accounter/shaam-uniform-format-generator
Version:
Fully typed application that generates, parses, and validates SHAAM uniform format tax reports (INI.TXT and BKMVDATA.TXT).
20 lines (16 loc) • 519 B
text/typescript
import { describe, expect, it } from 'vitest';
import { CRLF } from '../../src/format/newline.js';
describe('Newline constants', () => {
describe('CRLF', () => {
it('should be carriage return + line feed', () => {
expect(CRLF).toBe('\r\n');
});
it('should have correct character codes', () => {
expect(CRLF.charCodeAt(0)).toBe(13); // CR
expect(CRLF.charCodeAt(1)).toBe(10); // LF
});
it('should have length of 2', () => {
expect(CRLF.length).toBe(2);
});
});
});