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 0159bbe commit 6e642f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/artifact/__tests__/download-artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 226 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))` with `⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))⏎······`

Check failure on line 226 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))` with `⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))⏎······`

Check failure on line 226 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))` with `␍⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'x/etc/hosts'))␍⏎······`
expect(fs.existsSync(path.join(fixtures.workspaceDir, 'y/etc/hosts'))).toBe(true)

Check failure on line 227 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))` with `⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))⏎······`

Check failure on line 227 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))` with `⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))⏎······`

Check failure on line 227 in packages/artifact/__tests__/download-artifact.test.ts

View workflow job for this annotation

GitHub Actions / Build (windows-latest)

Replace `fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))` with `␍⏎········fs.existsSync(path.join(fixtures.workspaceDir,·'y/etc/hosts'))␍⏎······`

expect(response.downloadPath).toBe(fixtures.workspaceDir)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function streamExtractExternal(
reject(error)
})
.pipe(unzip.Extract({path: directory}))
.on('close', () => {
.on('close', () => {
clearTimeout(timer)
resolve()
})
Expand Down

0 comments on commit 6e642f6

Please sign in to comment.