Skip to content
Snippets Groups Projects
Commit 1c6725f0 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

tests: drop github cache test

parent 284f7862
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ async function getDigest(config) {
cacheNamespace,
getCacheKey(githubRepo, 'commit')
);
// istanbul ignore if
if (cachedResult) {
return cachedResult;
}
......
......@@ -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 () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment