Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bethanyj28 committed Apr 23, 2024
1 parent 6e642f6 commit 9eb3d3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/artifact/__tests__/download-artifact.test.ts
Expand Up @@ -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)
})
Expand Down

0 comments on commit 9eb3d3a

Please sign in to comment.