mirror of
https://github.com/actions/toolkit.git
synced 2026-08-14 00:00:18 +02:00
test: fix deprecated Jest matchers for v30
- Replace toThrowError() with toThrow() - Replace toBeCalledWith() with toHaveBeenCalledWith() - Update snapshots
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ test('unlinkFile unlinks file', async () => {
|
||||
})
|
||||
|
||||
test('assertDefined throws if undefined', () => {
|
||||
expect(() => cacheUtils.assertDefined('test', undefined)).toThrowError()
|
||||
expect(() => cacheUtils.assertDefined('test', undefined)).toThrow()
|
||||
})
|
||||
|
||||
test('assertDefined returns value', () => {
|
||||
|
||||
Reference in New Issue
Block a user