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

@ -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()