mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
test(dams): run the Acaray and Yacyretá layer check on main's test doubles
The separate layer test built a fake viewer with the old Cesium interface, which fails on current main. Move it into src/data/infrastructure.test.mjs on the fake ground renderer and input port, with one table and one parse of dams.geojsonl for both checks. Compare source_url exactly and check retrieved_at, and cover the dams attribution and both new records in the find_infrastructure tests. Also trim the dataset README section (keep both dams as polygons), drop the outdated "does not refresh or relicense" sentence, keep provenance out of the License cell, rename the changelog fragment after the change, and restore the accent in the test name.
This commit is contained in:
1 parent
17b75e8896
commit
fa4b4adeae
8 files changed
+87
-137
No files matched your search
@@ -119,6 +119,10 @@ test('datacenters and dams are listed nearest first with their own fields', asyn
|
||||
lon: -114.737,
|
||||
distance_km: 3.8,
|
||||
});
|
||||
assert.equal(
|
||||
dams.data.attribution,
|
||||
'© OpenStreetMap contributors (ODbL 1.0) + Open Infrastructure Map',
|
||||
);
|
||||
});
|
||||
|
||||
test('the bundled datasets load through the local fetch', async () => {
|
||||
@@ -135,6 +139,8 @@ test('the bundled datasets load through the local fetch', async () => {
|
||||
(record) => Number.isFinite(record.lat) && Number.isFinite(record.lon),
|
||||
),
|
||||
);
|
||||
for (const name of ['Acaray', 'Represa Yacyretá-Apipé'])
|
||||
assert.equal(dams.filter((record) => record.name === name).length, 1, name);
|
||||
assert.equal(await source.getRecords('local-dams'), dams);
|
||||
await assert.rejects(
|
||||
source.getRecords('local-other'),
|
||||
|
||||
Reference in new issue
Block a user