13 lines
516 B
JavaScript
13 lines
516 B
JavaScript
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');
|
||
});
|