test: count News beside Wildlife Sightings

The catalog holds 39 layers, News ends the Events group just before
Wildlife, and the README names twenty-three layers.
This commit is contained in:
Denis Groshev committed 2026-11-06 12:59:10 +01:00
1 parent 2e87dd87eb
commit 876e9b2e2f
4 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ test('catalogs construct distinct layers and classification from their supplied
signal: b.signal,
surface: fixtureSurface(b.signal),
});
assert.equal(first.layers.length, 38);
assert.equal(first.layers.length, 39);
assert.ok(first.get('local-adsb'), 'Local ADS-B is registered');
assert.deepEqual(
first.metadata.find(({ id }) => id === 'osm-places'),
@@ -162,7 +162,7 @@ test('Mapillary can be omitted or replaced without changing catalog membership',
surface: fixtureSurface(lifetime.signal),
};
const catalog = createApplicationCatalog(options);
assert.equal(catalog.layers.length, 38);
assert.equal(catalog.layers.length, 39);
assert.deepEqual(catalog.get('street-level').providerIds, []);
assert.equal(
catalogControlServices(catalog).streetLevelLayer,
+1 -1
View File
@@ -37,7 +37,7 @@ test('every acquisition source can be omitted without losing catalog membership'
test('all acquisition sources may be absent, and enable fails before initializing or fetching', async (t) => {
const actual = catalog({}, t);
assert.equal(actual.layers.length, 38);
assert.equal(actual.layers.length, 39);
const manager = new LayerLifecycle(
{},
{ getSourceAvailability: actual.getSourceAvailability },
+1 -1
View File
@@ -695,7 +695,7 @@ test('public transit documentation uses courtesy attribution and the approved gr
);
assert.ok(
readme.includes(
'Twenty-two layers and map sources. **Twenty have a keyless path.**',
'Twenty-three layers and map sources. **Twenty-one have a keyless path.**',
),
);
assert.ok(
+2 -1
View File
@@ -50,7 +50,8 @@ test('Wildlife follows Events and precedes Weather', () => {
);
const wildlife = order.findIndex(({ id }) => id === 'wildlife-sightings');
assert.equal(order[wildlife].label, 'Wildlife');
assert.equal(order[wildlife - 1].id, 's2-ghostmaps');
// News is the last of Events.
assert.equal(order[wildlife - 1].id, 'news');
assert.equal(order[wildlife + 1].id, 'air-quality');
assert.equal(order.filter(({ id }) => id === 'wildlife-sightings').length, 1);
});