From 292993f0c6ad0e12ada4eae54281727110145808 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Fri, 14 Feb 2020 08:52:41 +0100 Subject: [PATCH] test: fix coverage --- lib/datasource/npm/get.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index 6a895dd1ff..8ce6515f86 100644 --- a/lib/datasource/npm/get.ts +++ b/lib/datasource/npm/get.ts @@ -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);