use canonical province map for direct tenders
This commit is contained in:
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user