Fix empty cache save on using or github.workspace(#833 in actions/cache) as path

This commit is contained in:
Lovepreet Singh
2022-07-13 11:39:29 +00:00
committed by GitHub
parent c5278cdd08
commit 120202a68c
2 changed files with 11 additions and 1 deletions

View File

@@ -32,3 +32,8 @@ test('assertDefined throws if undefined', () => {
test('assertDefined returns value', () => {
expect(cacheUtils.assertDefined('test', 5)).toBe(5)
})
test('resolvePaths works on current directory', async () => {
const resolvedPath = await cacheUtils.resolvePaths(['.'])
expect(resolvedPath).toBe(['.'])
})