mirror of
https://github.com/actions/toolkit.git
synced 2026-08-25 00:00:27 +02:00
Standardized test case input
This commit is contained in:
+1
-1
@@ -292,7 +292,7 @@ test('save with valid inputs uploads a cache', async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('save with non existing path should not save cache', async () => {
|
test('save with non existing path should not save cache', async () => {
|
||||||
const paths: string[] = ['aPathThatDoesnotExist']
|
const paths: string[] = ['node_modules']
|
||||||
const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43'
|
const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43'
|
||||||
jest.spyOn(cacheUtils, 'resolvePaths').mockImplementation(async filePaths => {
|
jest.spyOn(cacheUtils, 'resolvePaths').mockImplementation(async filePaths => {
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user