Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions lib/locations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions test/locations-list-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env node

import assert from 'node:assert/strict';
import getLocations from '../lib/locations.js';

const locations = getLocations();

assert.ok(Array.isArray(locations), 'locations should be an array');
assert.ok(!locations.some(location => location.name.includes('Canada')), 'Canada regions should not be present');
assert.ok(!locations.some(location => location.geography === 'Canada'), 'Canada geography should not be present');
console.log('locations-list-test passed');