fix: fix result test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
838296e744
commit
d6a849727e
|
@ -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));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue