Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 3, 2021
1 parent 3cb2553 commit e816637
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/datasource/docker/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ describe(getName(__filename), () => {
.reply(200, '', {})
.get('/library/node/tags/list?n=10000')
.reply(401);
const res = await getPkgReleases({
datasource: docker.id,
depName: 'node',
});
expect(res).toBeNull();
await expect(
getPkgReleases({
datasource: docker.id,
depName: 'node',
})
).rejects.toThrow(EXTERNAL_HOST_ERROR);
expect(httpMock.getTrace()).toMatchSnapshot();
});
it('uses custom registry with registryUrls', async () => {
Expand Down

0 comments on commit e816637

Please sign in to comment.