mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-16 20:15:58 +08:00
Fix failing resolvePaths testcase
This commit is contained in:
parent
da6701aea9
commit
ec95a9b114
5
packages/cache/__tests__/cacheUtils.test.ts
vendored
5
packages/cache/__tests__/cacheUtils.test.ts
vendored
@ -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('.')
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user