From 1c6725f0bd1a9728935b05917c99fb777b69d39f Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 4 Jan 2019 12:28:08 +0100 Subject: [PATCH] tests: drop github cache test --- lib/datasource/github/index.js | 1 + test/datasource/github.spec.js | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/datasource/github/index.js b/lib/datasource/github/index.js index b0138079ed..a8aba77d90 100644 --- a/lib/datasource/github/index.js +++ b/lib/datasource/github/index.js @@ -53,6 +53,7 @@ async function getDigest(config) { cacheNamespace, getCacheKey(githubRepo, 'commit') ); + // istanbul ignore if if (cachedResult) { return cachedResult; } diff --git a/test/datasource/github.spec.js b/test/datasource/github.spec.js index 62e6eb0e86..71404262d7 100644 --- a/test/datasource/github.spec.js +++ b/test/datasource/github.spec.js @@ -29,18 +29,6 @@ describe('datasource/github', () => { ); expect(res).toBe('abcdef'); }); - it('returns cached digest', async () => { - ghGot.mockReturnValueOnce({ body: [{ sha: '12345' }] }); - await github.getDigest( - { depName: 'some-dep', githubRepo: 'some/dep' }, - null - ); - const res = await github.getDigest( - { depName: 'some-dep', githubRepo: 'some/dep' }, - null - ); - expect(res).toBe('12345'); - }); }); describe('getPreset()', () => { it('throws if non-default', async () => { -- GitLab