mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
e2f3dd23c9
commit
d9c9d74994
1 changed files with 0 additions and 19 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue