Skip to content
Snippets Groups Projects
Commit a2cc6cdc authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

chore: complete package worker coverage (#630)

parent 4b60bb2d
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ describe('lib/workers/package/index', () => { ...@@ -47,7 +47,7 @@ describe('lib/workers/package/index', () => {
expect(res[0].type).toEqual('warning'); expect(res[0].type).toEqual('warning');
}); });
it('returns array if upgrades found', async () => { it('returns array if upgrades found', async () => {
npmApi.getDependency.mockReturnValueOnce({}); npmApi.getDependency.mockReturnValueOnce({ repositoryUrl: 'some-url' });
versions.determineUpgrades = jest.fn(() => [{}]); versions.determineUpgrades = jest.fn(() => [{}]);
const res = await pkgWorker.renovatePackage(config); const res = await pkgWorker.renovatePackage(config);
expect(res).toHaveLength(1); expect(res).toHaveLength(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment