mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-12 06:12:18 +00:00
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:
1 parent
2e87dd87eb
commit
876e9b2e2f
4 files changed
+6
-5
No files matched your search
@@ -40,7 +40,7 @@ test('catalogs construct distinct layers and classification from their supplied
|
|||||||
signal: b.signal,
|
signal: b.signal,
|
||||||
surface: fixtureSurface(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.ok(first.get('local-adsb'), 'Local ADS-B is registered');
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
first.metadata.find(({ id }) => id === 'osm-places'),
|
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),
|
surface: fixtureSurface(lifetime.signal),
|
||||||
};
|
};
|
||||||
const catalog = createApplicationCatalog(options);
|
const catalog = createApplicationCatalog(options);
|
||||||
assert.equal(catalog.layers.length, 38);
|
assert.equal(catalog.layers.length, 39);
|
||||||
assert.deepEqual(catalog.get('street-level').providerIds, []);
|
assert.deepEqual(catalog.get('street-level').providerIds, []);
|
||||||
assert.equal(
|
assert.equal(
|
||||||
catalogControlServices(catalog).streetLevelLayer,
|
catalogControlServices(catalog).streetLevelLayer,
|
||||||
|
|||||||
@@ -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) => {
|
test('all acquisition sources may be absent, and enable fails before initializing or fetching', async (t) => {
|
||||||
const actual = catalog({}, t);
|
const actual = catalog({}, t);
|
||||||
assert.equal(actual.layers.length, 38);
|
assert.equal(actual.layers.length, 39);
|
||||||
const manager = new LayerLifecycle(
|
const manager = new LayerLifecycle(
|
||||||
{},
|
{},
|
||||||
{ getSourceAvailability: actual.getSourceAvailability },
|
{ getSourceAvailability: actual.getSourceAvailability },
|
||||||
|
|||||||
@@ -695,7 +695,7 @@ test('public transit documentation uses courtesy attribution and the approved gr
|
|||||||
);
|
);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
readme.includes(
|
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(
|
assert.ok(
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ test('Wildlife follows Events and precedes Weather', () => {
|
|||||||
);
|
);
|
||||||
const wildlife = order.findIndex(({ id }) => id === 'wildlife-sightings');
|
const wildlife = order.findIndex(({ id }) => id === 'wildlife-sightings');
|
||||||
assert.equal(order[wildlife].label, 'Wildlife');
|
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[wildlife + 1].id, 'air-quality');
|
||||||
assert.equal(order.filter(({ id }) => id === 'wildlife-sightings').length, 1);
|
assert.equal(order.filter(({ id }) => id === 'wildlife-sightings').length, 1);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user