Fix some tests

This commit is contained in:
Pieter Vander Vennet 2022-06-20 01:55:29 +02:00
parent bae64ab2f3
commit ca91241c3b
3 changed files with 67 additions and 17 deletions

View file

@ -380,7 +380,7 @@ export class DetectMappingsWithImages extends DesugaringStep<TagRenderingConfigJ
}
/**
* const r = new DetectMappingsWithImages().convert({
* const r = new DetectMappingsWithImages(new Set<string>()).convert({
* "mappings": [
* {
* "if": "bicycle_parking=stands",
@ -457,7 +457,7 @@ export class ValidateLayer extends DesugaringStep<LayerConfigJson> {
*/
private readonly _path?: string;
private readonly _isBuiltin: boolean;
private knownImagePaths: Set<string>;
private knownImagePaths: Set<string> | undefined;
constructor(path: string, isBuiltin: boolean, knownImagePaths: Set<string>) {
super("Doesn't change anything, but emits warnings and errors", [], "ValidateLayer");