Sync translations, regenerate docs, fix tests

This commit is contained in:
Pieter Vander Vennet 2023-01-17 03:18:39 +01:00
parent f789c8db9e
commit fd30c44352
7 changed files with 98 additions and 43 deletions

View file

@ -151,9 +151,11 @@ describe("OsmFeatureSource", () => {
ScriptUtils.fixUtils()
Utils.injectJsonDownloadForTests(
"https://www.openstreetmap.org/api/0.6/relation/5759328/full",
JSON.parse(readFileSync("./test/data/relation_5759328.json", "UTF-8"))
JSON.parse(readFileSync("./test/data/relation_5759328.json", { encoding: "utf-8" }))
)
let data = JSON.parse(
readFileSync("./test/Logic/FeatureSource/small_box.json", { encoding: "utf-8" })
)
let data = JSON.parse(readFileSync("./test/Logic/FeatureSource/small_box.json", "utf8"))
Utils.injectJsonDownloadForTests(
"https://osm.org/api/0.6/map?bbox=4.24346923828125,50.732978448277514,4.2462158203125,50.73471682490244",
data

View file

@ -89,7 +89,7 @@ describe("OsmObject", () => {
ScriptUtils.fixUtils()
Utils.injectJsonDownloadForTests(
"https://www.openstreetmap.org/api/0.6/relation/5759328/full",
JSON.parse(readFileSync("./test/data/relation_5759328.json", "UTF-8"))
JSON.parse(readFileSync("./test/data/relation_5759328.json", { encoding: "utf-8" }))
)
const r = await OsmObject.DownloadObjectAsync("relation/5759328").then((x) => x)
const geojson = r.asGeoJson()