Add negative test for createArchives
This commit is contained in:
@@ -75,7 +75,11 @@ describe('createArchives', () => {
|
||||
expect(tarSHA).toEqual(systemTarHash)
|
||||
})
|
||||
|
||||
// TODO: Test the failure cases
|
||||
it('creates archives fails if destination cannot be reached', async () => {
|
||||
await expect(
|
||||
fsHelper.createArchives('/this/destination/path/does/not/exist', tmpDir)
|
||||
).rejects.toThrow(/^ENOENT: no such file or directory, lstat/)
|
||||
})
|
||||
})
|
||||
|
||||
describe('createTempDir', () => {
|
||||
|
||||
Reference in New Issue
Block a user