mirror of https://github.com/actions/toolkit
lint
parent
6e642f628f
commit
9eb3d3a673
|
@ -223,8 +223,12 @@ describe('download-artifact', () => {
|
||||||
)
|
)
|
||||||
|
|
||||||
// ensure path traversal was not possible
|
// ensure path traversal was not possible
|
||||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'x/etc/hosts'))).toBe(true)
|
expect(
|
||||||
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true)
|
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)
|
expect(response.downloadPath).toBe(fixtures.workspaceDir)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue