Update to latest typescript version (#274)
This commit is contained in:
1 parent
3102a5464f
commit
d2f94edb00
1 file changed
+6
-6
@@ -1171,9 +1171,9 @@ describe('which', () => {
|
|||||||
const originalPath = process.env['PATH']
|
const originalPath = process.env['PATH']
|
||||||
try {
|
try {
|
||||||
// modify PATH
|
// modify PATH
|
||||||
process.env['PATH'] = `${process.env['PATH']}${
|
process.env[
|
||||||
path.delimiter
|
'PATH'
|
||||||
}${testPath}`
|
] = `${process.env['PATH']}${path.delimiter}${testPath}`
|
||||||
|
|
||||||
// find each file
|
// find each file
|
||||||
for (const fileName of Object.keys(files)) {
|
for (const fileName of Object.keys(files)) {
|
||||||
@@ -1244,9 +1244,9 @@ describe('which', () => {
|
|||||||
await fs.writeFile(notExpectedFilePath, '')
|
await fs.writeFile(notExpectedFilePath, '')
|
||||||
const originalPath = process.env['PATH']
|
const originalPath = process.env['PATH']
|
||||||
try {
|
try {
|
||||||
process.env['PATH'] = `${process.env['PATH']}${
|
process.env[
|
||||||
path.delimiter
|
'PATH'
|
||||||
}${testPath}`
|
] = `${process.env['PATH']}${path.delimiter}${testPath}`
|
||||||
expect(await io.which(fileName)).toBe(expectedFilePath)
|
expect(await io.which(fileName)).toBe(expectedFilePath)
|
||||||
} finally {
|
} finally {
|
||||||
process.env['PATH'] = originalPath
|
process.env['PATH'] = originalPath
|
||||||
|
|||||||
Reference in new issue
Block a user