forked from MapComplete/MapComplete
Fixed tests
This commit is contained in:
parent
fe8c63d762
commit
b4153314c7
1 changed files with 3 additions and 3 deletions
|
@ -422,8 +422,8 @@ export default class LegacyThemeLoaderSpec extends T {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, "test");
|
}, "test");
|
||||||
T.isTrue(r.warnings.length > 0, "Failing case 0 is not detected")
|
T.isTrue(r.errors.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[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({
|
const r0 = new DetectShadowedMappings().convert({
|
||||||
mappings: [
|
mappings: [
|
||||||
{
|
{
|
||||||
|
@ -436,7 +436,7 @@ export default class LegacyThemeLoaderSpec extends T {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, "test");
|
}, "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", () => {
|
["Images are rewritten", () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue