Fix failing resolvePaths testcase

This commit is contained in:
Lovepreet Singh authored and GitHub committed 2022-07-14 08:10:40 +00:00
1 parent 34526e53bb
commit 7f3dae6795
1 file changed
+3 -2
+3 -2
View File
@@ -1,5 +1,6 @@
import {promises as fs} from 'fs'
import * as path from 'path'
import { coerce } from 'semver'
import * as cacheUtils from '../src/internal/cacheUtils'
test('getArchiveFileSizeInBytes returns file size', () => {
@@ -34,6 +35,6 @@ test('assertDefined returns value', () => {
})
test('resolvePaths works on current directory', async () => {
const resolvedPath = await cacheUtils.resolvePaths(['.'])
expect(resolvedPath).toStrictEqual(['.'])
const paths = await cacheUtils.resolvePaths(['.'])
expect(paths).toContain('.')
})