mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +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
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user