1
0
Fork 0

add a comment

pull/1666/head
bethanyj28 2024-02-23 15:33:24 -05:00
parent 7fa864a4f4
commit 6cf4fbcef8
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ const mockGetArtifactFailure = jest.fn(() => {
const mockGetArtifactMalicious = jest.fn(() => {
const message = new http.IncomingMessage(new net.Socket())
message.statusCode = 200
message.push(fs.readFileSync(path.join(__dirname, 'fixtures', 'evil.zip')))
message.push(fs.readFileSync(path.join(__dirname, 'fixtures', 'evil.zip'))) // evil.zip contains files that are formatted x/../../etc/hosts
message.push(null)
return {
message