From 8ad26f169c18a1d934697e872d23e3a766ad268c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 27 Jan 2022 00:22:37 +0100 Subject: [PATCH] Add extra test --- test/CreateNoteImportLayer.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/CreateNoteImportLayer.spec.ts b/test/CreateNoteImportLayer.spec.ts index aa48d8f97..35f67d3df 100644 --- a/test/CreateNoteImportLayer.spec.ts +++ b/test/CreateNoteImportLayer.spec.ts @@ -22,10 +22,11 @@ export default class CreateNoteImportLayerSpec extends T { const generator = new CreateNoteImportLayer() const generatedLayer: LayerConfigJson = generator.convertStrict(desugaringState, 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 .map(tr => (tr).render)) .map(render => render["en"])) - T.equals(true, renderings.some(r => r.indexOf("import_button") > 0)) + T.isTrue(renderings.some(r => r.indexOf("import_button") > 0), "no import button found") }] ]); }