add tests for download artifact

This commit is contained in:
Rob Herley committed 2023-08-23 23:18:03 -04:00
1 parent 55c902ad05
commit d89027a67a
2 files changed
+280 -6

No files matched your search

+1 -6
View File
@@ -39,12 +39,7 @@ async function streamExtract(url: string, directory: string): Promise<void> {
)
}
return new Promise((resolve, reject) => {
response.message
.pipe(unzipper.Extract({path: directory}))
.on('finish', resolve)
.on('error', reject)
})
return response.message.pipe(unzipper.Extract({path: directory})).promise()
}
export async function downloadArtifact(