Skip to content

Commit f997d05

Browse files
committed
update test to conform to new jest library
1 parent 2e2c6f2 commit f997d05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

__tests__/image-service.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ jest.mock('@actions/core')
88
describe('ImageService', () => {
99
describe('when asked to fetch non-GitHub hosted images', () => {
1010
test('it raises an error', async () => {
11-
await expect(ImageService.pull('hello-world')).rejects.toThrowError(
12-
new Error(
13-
'Only images distributed via docker.pkg.github.com or ghcr.io can be fetched'
14-
)
11+
await expect(ImageService.pull('hello-world')).rejects.toThrow(
12+
'Only images distributed via docker.pkg.github.com or ghcr.io can be fetched'
1513
)
1614
})
1715
})

0 commit comments

Comments
 (0)