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:
committed by
sharelatex
parent
86d844baf2
commit
b5f4e26840
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user