mirror of https://github.com/actions/toolkit
lint
parent
0159bbe7f2
commit
6e642f628f
|
@ -223,8 +223,8 @@ describe('download-artifact', () => {
|
|||
)
|
||||
|
||||
// ensure path traversal was not possible
|
||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'x/etc/hosts'))).toBe(true);
|
||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true);
|
||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'x/etc/hosts'))).toBe(true)
|
||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true)
|
||||
|
||||
expect(response.downloadPath).toBe(fixtures.workspaceDir)
|
||||
})
|
||||
|
|
|
@ -90,7 +90,7 @@ export async function streamExtractExternal(
|
|||
reject(error)
|
||||
})
|
||||
.pipe(unzip.Extract({path: directory}))
|
||||
.on('close', () => {
|
||||
.on('close', () => {
|
||||
clearTimeout(timer)
|
||||
resolve()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue