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', () => {
expect(res[0].type).toEqual('warning');
});
it('returns array if upgrades found', async () => {
npmApi.getDependency.mockReturnValueOnce({});
npmApi.getDependency.mockReturnValueOnce({ repositoryUrl: 'some-url' });
versions.determineUpgrades = jest.fn(() => [{}]);
const res = await pkgWorker.renovatePackage(config);
expect(res).toHaveLength(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment