Repaired prepare-job hook without job container

This commit is contained in:
Nikola Jokic
2022-06-10 11:07:50 +02:00
parent 347e68d3c9
commit 7ae8942b3d
2 changed files with 26 additions and 20 deletions

View File

@@ -68,4 +68,11 @@ describe('Prepare job', () => {
prepareJob(prepareJobData.args, prepareJobOutputFilePath)
).rejects.toThrow()
})
it('should run prepare job without the job container', async () => {
prepareJobData.args.container = undefined
await expect(
prepareJob(prepareJobData.args, prepareJobOutputFilePath)
).resolves.not.toThrow()
})
})