Fixed tests

This commit is contained in:
Pieter Vander Vennet 2022-03-17 23:13:02 +01:00
parent fe8c63d762
commit b4153314c7

View file

@ -422,8 +422,8 @@ export default class LegacyThemeLoaderSpec extends T {
}
]
}, "test");
T.isTrue(r.warnings.length > 0, "Failing case 0 is not detected")
T.isTrue(r.warnings[0].indexOf("The mapping key=value is fully matched by a previous mapping (namely 0)") >= 0, "Error message does not contain tag and indices")
T.isTrue(r.errors.length > 0, "Failing case 0 is not detected")
T.isTrue(r.errors[0].indexOf("The mapping key=value is fully matched by a previous mapping (namely 0)") >= 0, "Error message does not contain tag and indices")
const r0 = new DetectShadowedMappings().convert({
mappings: [
{
@ -436,7 +436,7 @@ export default class LegacyThemeLoaderSpec extends T {
}
]
}, "test");
T.isTrue(r0.warnings.length > 0, "Failing case 1 is not detected")
T.isTrue(r0.errors.length > 0, "Failing case 1 is not detected")
}
],
["Images are rewritten", () => {