Merge pull request #2118 from overleaf/cmg-convert-array-archiving

New archiving endpoint to convert to array

GitOrigin-RevId: a6f5d3e2363afcbcd5719731261b85a0ae7a1e25
This commit is contained in:
Jessica Lawshe
2019-10-02 14:22:28 +00:00
committed by sharelatex
parent 86d844baf2
commit b5f4e26840
8 changed files with 329 additions and 12 deletions
@@ -38,7 +38,7 @@ describe('ProjectController', function() {
}
this.token = 'some-token'
this.ProjectDeleter = {
archiveProject: sinon.stub().callsArg(1),
legacyArchiveProject: sinon.stub().callsArg(1),
deleteProject: sinon.stub().callsArg(2),
restoreProject: sinon.stub().callsArg(1),
findArchivedProjects: sinon.stub()
@@ -284,7 +284,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.archiveProject
this.ProjectDeleter.legacyArchiveProject
.calledWith(this.project_id)
.should.equal(true)
code.should.equal(200)