1
0
Fork 0
pull/1724/head
bethanyj28 2024-04-23 16:10:57 -04:00
parent 6e642f628f
commit 9eb3d3a673
1 changed files with 6 additions and 2 deletions

View File

@ -223,8 +223,12 @@ 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)
})