Fix tests

This commit is contained in:
Pieter Vander Vennet 2022-02-04 01:09:21 +01:00
parent 97bbd75f13
commit 1993861bbe
3 changed files with 4 additions and 14 deletions

View file

@ -21,6 +21,6 @@
"widenFactor": 0.05,
"socialImage": "",
"layers": [
"bicycle_rental"
"bicycle_rental"
]
}

View file

@ -43,16 +43,6 @@
"https://mapcomplete.osm.be/toerisme_vlaanderenn"
]
},
{
"path": "logo.png",
"license": "Logo (all rights reserved)",
"authors": [
"Toerisme Vlaanderen"
],
"sources": [
"https://www.toerismevlaanderen.be/"
]
},
{
"path": "observation_platform.svg",
"license": "CC0",

View file

@ -17,10 +17,10 @@ export default class CreateNoteImportLayerSpec extends T {
tagRenderings: new Map<string, TagRenderingConfigJson>()
}
const layerPrepare = new PrepareLayer()
const layer = layerPrepare.convertStrict(desugaringState, bookcases, "ImportLayerGeneratorTest:Parse bookcases")
const layerPrepare = new PrepareLayer(desugaringState)
const layer = layerPrepare.convertStrict(bookcases, "ImportLayerGeneratorTest:Parse bookcases")
const generator = new CreateNoteImportLayer()
const generatedLayer: LayerConfigJson = generator.convertStrict(desugaringState, layer, "ImportLayerGeneratorTest: convert")
const generatedLayer: LayerConfigJson = generator.convertStrict(layer, "ImportLayerGeneratorTest: convert")
T.equals("_tags~(^|.*;)amenity=public_bookcase($|;.*)", generatedLayer.isShown.mappings[1].if["and"][1].or[0].and[0])
T.isTrue(generatedLayer.minzoom <= layer.minzoom, "Zoomlevel is to high")
let renderings = Utils.NoNull(Utils.NoNull(generatedLayer.tagRenderings