feat: add config download functionality

This commit is contained in:
sokol
2026-02-18 21:46:23 +03:00
parent 325699d036
commit c4221c9bea
7 changed files with 122 additions and 107 deletions

View File

@@ -0,0 +1,11 @@
import { describe, it, expect } from 'vitest';
import { ConfigBuilder } from '../builders/ConfigBuilder';
describe('ConfigBuilder', () => {
describe('generateFilename', () => {
it('should generate filename with correct format', () => {
const filename = ConfigBuilder.generateFilename();
expect(filename).toMatch(/^config_\d{2}-\d{2}-\d{2}-\d{4}\.json\.xml$/);
});
});
});