mirror of
https://github.com/actions/toolkit.git
synced 2026-08-24 00:00:19 +02:00
test: fix deprecated Jest matchers for v30
- Replace toThrowError() with toThrow() - Replace toBeCalledWith() with toHaveBeenCalledWith() - Update snapshots
This commit is contained in:
@@ -132,7 +132,7 @@ describe('upload-artifact', () => {
|
||||
fixtures.inputs.files,
|
||||
fixtures.inputs.rootDirectory
|
||||
)
|
||||
await expect(uploadResp).rejects.toThrowError(FilesNotFoundError)
|
||||
await expect(uploadResp).rejects.toThrow(FilesNotFoundError)
|
||||
})
|
||||
|
||||
it('should reject if no backend IDs are found', async () => {
|
||||
|
||||
Reference in New Issue
Block a user