diff --git a/lib/datasource/github/index.js b/lib/datasource/github/index.js index b0138079edd135ce95660d0c7862a4f7960803a8..a8aba77d90fa545aa4b149d69d902c9e15910ace 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 62e6eb0e861f56b88abfdb818619635f4fac093b..71404262d70294a4289dc5ecf1fec4619b2a2d07 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 () => {