Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

refactor(radio): expose shared country normalization

Sameh Khamis3b1e75171a59
diff --git a/src/data/radioCountry.test.mjs b/src/data/radioCountry.test.mjs
index 3270b46dc..aafe13a07 100644
--- a/src/data/radioCountry.test.mjs
+++ b/src/data/radioCountry.test.mjs
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import test from 'node:test';
-import { normalizeRadioCountryInput } from './radioCountry.js';
+import { normalizeRadioCountryInput } from '../layers/radio/index.js';
test('Radio country normalization maps ISO codes and bounded common names', () => {
for (const [input, code] of [
diff --git a/src/layers/radio/index.js b/src/layers/radio/index.js
index 88f072d10..fa84e1054 100644
--- a/src/layers/radio/index.js
+++ b/src/layers/radio/index.js
@@ -138,3 +138,5 @@ export {
radioTunerPointerPosition,
buildRadioTunerTicks,
} from '../../ui/radioTunerModel.js';
+
+export { normalizeRadioCountryInput } from '../../data/radioCountry.js';