This commit is contained in:
bethanyj28 committed 2024-04-23 16:06:02 -04:00
1 parent 2b41bccf5b
commit c8709a8e12
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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)
})