Remove unnecessary test for S3 file deletion

S3 does not throw a not-found error when deleting a file that does not exist
This commit is contained in:
Simon Detheridge 2020-02-13 15:47:42 +00:00
parent e2f3dd23c9
commit d9c9d74994

View file

@ -675,25 +675,6 @@ describe('S3PersistorTests', function() {
})
})
})
describe('when the file does not exist', function() {
let error
beforeEach(async function() {
S3Client.deleteObject = sinon.stub().returns({
promise: sinon.stub().rejects(S3NotFoundError)
})
try {
await S3Persistor.promises.deleteFile(bucket, key)
} catch (err) {
error = err
}
})
it('should throw a NotFoundError', function() {
expect(error).to.be.an.instanceOf(Errors.NotFoundError)
})
})
})
describe('deleteDirectory', function() {