From fb4a3ea99abb21450c2e55fbc5c545509956ecbf Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Fri, 18 Feb 2022 00:12:32 +0100 Subject: [PATCH] Fix tests --- Models/ThemeConfig/Conversion/Validation.ts | 4 ++-- test/LegacyThemeLoader.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/ThemeConfig/Conversion/Validation.ts b/Models/ThemeConfig/Conversion/Validation.ts index 398a78268..a0a3aff48 100644 --- a/Models/ThemeConfig/Conversion/Validation.ts +++ b/Models/ThemeConfig/Conversion/Validation.ts @@ -226,7 +226,7 @@ export class DetectShadowedMappings extends DesugaringStep TagUtils.Tag(m.if)) for (let i = 0; i < json.mappings.length; i++) { - if (!parsedConditions[i].isUsableAsAnswer()) { + if(json.mappings[i].hideInAnswer === true){ continue } const keyValues = parsedConditions[i].asChange({}); @@ -241,7 +241,7 @@ export class DetectShadowedMappings extends DesugaringStep 0, "Failing case is not detected") + T.isTrue(r.errors.length > 0, "Failing case 0 is not detected") const r0 = new DetectShadowedMappings().convert( { mappings: [ @@ -437,7 +437,7 @@ export default class LegacyThemeLoaderSpec extends T { } ] }, "test"); - T.isTrue(r0.errors.length > 0, "Failing case is not detected") + T.isTrue(r0.errors.length > 0, "Failing case 1 is not detected") } ], ["Images are rewritten", () => {