mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-19 05:59:53 +08:00
Add extra assertion to download single artifact test
This commit is contained in:
@@ -76,6 +76,15 @@ describe('download', () => {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
expect(core.info).toHaveBeenCalledWith('Total of 1 artifact(s) downloaded')
|
expect(core.info).toHaveBeenCalledWith('Total of 1 artifact(s) downloaded')
|
||||||
|
|
||||||
|
expect(core.setOutput).toHaveBeenCalledWith(
|
||||||
|
'download-path',
|
||||||
|
expect.any(String)
|
||||||
|
)
|
||||||
|
|
||||||
|
expect(core.info).toHaveBeenCalledWith(
|
||||||
|
'Download artifact has finished successfully'
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
test('downloads multiple artifacts when no name or pattern provided', async () => {
|
test('downloads multiple artifacts when no name or pattern provided', async () => {
|
||||||
|
Reference in New Issue
Block a user