Files
ihaleist/tests/health-acceptance-fixture.test.mjs
T

22 lines
830 B
JavaScript

import { test } from 'node:test';
import assert from 'node:assert/strict';
// D10 smoke fixture: synthetic records only; official documents are still required for release acceptance.
const cases = [
['1582991', 'Giresun', '10.09.2026', '10:00'],
['1534665', 'Kayseri', '22.09.2026', '11:00'],
['1499061', 'Akdeniz', '22.09.2026', '10:30'],
['1573235', 'Aksaray', '09.09.2026', '10:00'],
['1523851', 'Tepecik', '11.09.2026', '10:00'],
];
test('D10 five-tender acceptance fixture stays complete and unique', () => {
assert.equal(new Set(cases.map(([ikn]) => ikn)).size, 5);
for (const [ikn, city, date, time] of cases) {
assert.match(ikn, /^\d{7}$/);
assert.match(city, /^[A-Za-zÇĞİÖŞÜçğıöşü]+$/);
assert.match(date, /^\d{2}\.\d{2}\.\d{4}$/);
assert.match(time, /^\d{2}:\d{2}$/);
}
});