Skip to content

Commit

Permalink
test: fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 14, 2020
1 parent 5e022e2 commit 292993f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/datasource/npm/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 292993f

Please sign in to comment.