Update to latest typescript version (#274)

This commit is contained in:
Josh Gross
2019-12-27 19:42:30 -05:00
committed by eric sciple
parent 60d3096c71
commit 8a4134761f
6 changed files with 21 additions and 37 deletions

View File

@@ -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