test: fix coverage

This commit is contained in:
Rhys Arkins 2020-02-14 08:52:41 +01:00
parent 5e022e2a50
commit 292993f0c6

View file

@ -240,7 +240,8 @@ export async function getDependency(
await delay(5000);
return getDependency(name, retries - 1);
}
if (err.name === 'ParseError') {
// istanbul ignore if
if (err.name === 'ParseError' && err.body) {
err.body = 'err.body deleted by Renovate';
}
throw new DatasourceError(err);