mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-02 03:33:15 +08:00
Fix empty cache save on using or github.workspace(#833 in actions/cache) as path
This commit is contained in:
5
packages/cache/__tests__/cacheUtils.test.ts
vendored
5
packages/cache/__tests__/cacheUtils.test.ts
vendored
@@ -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(['.'])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user