Merge pull request #2585 from overleaf/cmg-remove-legacy-archive

Remove legacy project archiving

GitOrigin-RevId: a402cde154cdc2ef5e93661318c5ca86201471b5
This commit is contained in:
Chrystal Maria Griffiths
2020-02-13 04:20:26 +00:00
committed by Copybot
parent 3785be1fec
commit 4131e5ce7b
6 changed files with 8 additions and 66 deletions
@@ -40,7 +40,6 @@ describe('ProjectController', function() {
}
this.token = 'some-token'
this.ProjectDeleter = {
legacyArchiveProject: sinon.stub().callsArg(1),
deleteProject: sinon.stub().callsArg(2),
restoreProject: sinon.stub().callsArg(1),
findArchivedProjects: sinon.stub()
@@ -305,19 +304,7 @@ describe('ProjectController', function() {
})
describe('deleteProject', function() {
it('should tell the project deleter to archive when forever=false', function(done) {
this.res.sendStatus = code => {
this.ProjectDeleter.legacyArchiveProject
.calledWith(this.project_id)
.should.equal(true)
code.should.equal(200)
done()
}
this.ProjectController.deleteProject(this.req, this.res)
})
it('should tell the project deleter to delete when forever=true', function(done) {
this.req.query = { forever: 'true' }
it('should call the project deleter', function(done) {
this.res.sendStatus = code => {
this.ProjectDeleter.deleteProject
.calledWith(this.project_id, {