From 65643bae11eee2ca7777b787bbcf50cfd8262bb0 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 4 Jan 2019 09:36:38 +0100
Subject: [PATCH] tests: fix gitlab datasource test coverage

---
 lib/datasource/gitlab/index.js | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/datasource/gitlab/index.js b/lib/datasource/gitlab/index.js
index db032fe14b..e5a9b271ae 100644
--- a/lib/datasource/gitlab/index.js
+++ b/lib/datasource/gitlab/index.js
@@ -30,15 +30,14 @@ async function getPreset(pkgName, presetName = 'default') {
   }
   try {
     return JSON.parse(res);
-  } catch (err) {
-    logger.debug('Failed to parse renovate.json');
+  } catch (err) /* istanbul ignore next */ {
+    logger.info('Failed to parse renovate.json');
     throw new Error('invalid preset JSON');
   }
 }
 
-/* eslint-disable no-unused-vars */
-function getPkgReleases(purl) {}
-/* eslint-enable no-unused-vars */
+// istanbul ignore next
+function getPkgReleases() {}
 
 async function getDefaultBranchName(urlEncodedPkgName) {
   const branchesUrl = `${GitLabApiUrl}/${urlEncodedPkgName}/repository/branches`;
-- 
GitLab