fix: fix result test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-11-28 13:11:43 +01:00
parent 838296e744
commit d6a849727e
1 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,6 @@ module.exports = Self => {
const xmlDoc = parser.parseFromString(xmlString, 'text/xml');
const result = xmlDoc.getElementsByTagName('Mensaje')[0].textContent;
return ['no se ha encontrado', 'se ha cancelado correctamente'].some(r => r.includes(result.toLowerCase()));
return ['no se ha encontrado', 'se ha cancelado correctamente'].some(res => result.toLowerCase().includes(res));
};
};