1
0
Fork 0

Fix failing resolvePaths testcase

pull/1132/head
Lovepreet Singh 2022-07-14 07:50:44 +00:00 committed by GitHub
parent da6701aea9
commit 67cb82d99b
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import {promises as fs} from 'fs' import {promises as fs} from 'fs'
import * as path from 'path' import * as path from 'path'
import { coerce } from 'semver'
import * as cacheUtils from '../src/internal/cacheUtils' import * as cacheUtils from '../src/internal/cacheUtils'
test('getArchiveFileSizeInBytes returns file size', () => { test('getArchiveFileSizeInBytes returns file size', () => {
@ -34,6 +35,6 @@ test('assertDefined returns value', () => {
}) })
test('resolvePaths works on current directory', async () => { test('resolvePaths works on current directory', async () => {
const resolvedPath = await cacheUtils.resolvePaths(['.']) const paths = await cacheUtils.resolvePaths(['.'])
expect(resolvedPath).toStrictEqual(['.']) expect(paths).toContain('.')
}) })