mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-30 02:18:06 +08:00
Update to latest typescript version (#274)
This commit is contained in:
@@ -1171,9 +1171,9 @@ describe('which', () => {
|
||||
const originalPath = process.env['PATH']
|
||||
try {
|
||||
// modify PATH
|
||||
process.env['PATH'] = `${process.env['PATH']}${
|
||||
path.delimiter
|
||||
}${testPath}`
|
||||
process.env[
|
||||
'PATH'
|
||||
] = `${process.env['PATH']}${path.delimiter}${testPath}`
|
||||
|
||||
// find each file
|
||||
for (const fileName of Object.keys(files)) {
|
||||
@@ -1244,9 +1244,9 @@ describe('which', () => {
|
||||
await fs.writeFile(notExpectedFilePath, '')
|
||||
const originalPath = process.env['PATH']
|
||||
try {
|
||||
process.env['PATH'] = `${process.env['PATH']}${
|
||||
path.delimiter
|
||||
}${testPath}`
|
||||
process.env[
|
||||
'PATH'
|
||||
] = `${process.env['PATH']}${path.delimiter}${testPath}`
|
||||
expect(await io.which(fileName)).toBe(expectedFilePath)
|
||||
} finally {
|
||||
process.env['PATH'] = originalPath
|
||||
|
||||
Reference in New Issue
Block a user