1
0
Fork 0

Change testcase to test against github workspace directory instead of current directory

pull/1132/head
Lovepreet Singh 2022-07-20 05:25:47 +00:00
parent 83bca5cb13
commit e98bae803b
1 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,8 @@ test('assertDefined returns value', () => {
expect(cacheUtils.assertDefined('test', 5)).toBe(5) expect(cacheUtils.assertDefined('test', 5)).toBe(5)
}) })
test('resolvePaths works on current directory', async () => { test('resolvePaths works on github workspace directory', async () => {
const paths = await cacheUtils.resolvePaths(['.']) const workspace = process.env['GITHUB_WORKSPACE'] ?? '.'
expect(paths.length).toBe(1) const paths = await cacheUtils.resolvePaths([workspace])
expect(paths.length).toBeGreaterThan(0)
}) })