Skip to content

Commit

Permalink
Update tool-cache.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
luketomlinson committed May 14, 2021
1 parent 413c96a commit 70491f6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/tool-cache/__tests__/tool-cache.test.ts
Expand Up @@ -354,7 +354,7 @@ describe('@actions/tool-cache', function() {
await io.rmRF(tempDir)
}
})
it.each(['pwsh'])(
it.each(['pwsh', 'powershell'])(
'unzip properly fails with bad path (%s)',
async powershellTool => {
const originalPath = process.env['PATH']
Expand All @@ -364,13 +364,6 @@ describe('@actions/tool-cache', function() {
process.env['PATH'] = removePWSHFromPath(process.env['PATH'])
}

try {
const extPath = await tc.extractZip('badPath')
console.log(`=== extPath: ${extPath}`)
} catch (error) {
console.log(`=== ext error: ${error}`)
}

await expect(tc.extractZip('badPath')).rejects.toThrow()
} finally {
process.env['PATH'] = originalPath
Expand Down

0 comments on commit 70491f6

Please sign in to comment.