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

This commit is contained in:
Lovepreet Singh authored and GitHub committed 2022-07-13 11:39:29 +00:00
1 parent 4494306e7f
commit 8ccf58a6eb
2 files changed
+11 -1

No files matched your search

+5
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(['.'])
})