use canonical province map for direct tenders

This commit is contained in:
2026-09-06 19:36:00 +03:00
parent 89a6f401c8
commit 74e784e2f7
3 changed files with 19 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { IL_PLAKA } from '../server/il-plaka.mjs';
test('canonical province map covers all 81 Turkish plate codes', () => {
const codes = Object.keys(IL_PLAKA).map(Number).sort((a, b) => a - b);
assert.deepEqual(codes, Array.from({ length: 81 }, (_, index) => index + 1));
assert.equal(IL_PLAKA[28], 'Giresun');
assert.equal(IL_PLAKA[68], 'Aksaray');
assert.equal(IL_PLAKA[76], 'Iğdır');
assert.equal(IL_PLAKA[81], 'Düzce');
});