mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
This reverts commit ac263dca8cf0d80186fee916a76e5572ec5649d4. GitOrigin-RevId: cc82e9c7d51966a7be0e8bef06ae4afe3f73170c
This commit is contained in:
@@ -54,9 +54,6 @@ describe('ProjectController', function () {
|
||||
.stub()
|
||||
.callsArgWith(2, null, { _id: this.project_id }),
|
||||
}
|
||||
this.ProjectHistoryHandler = {
|
||||
ensureHistoryExistsForProject: sinon.stub().callsArg(1),
|
||||
}
|
||||
this.SubscriptionLocator = { getUsersSubscription: sinon.stub() }
|
||||
this.LimitationsManager = { hasPaidSubscription: sinon.stub() }
|
||||
this.TagsHandler = { getAllTags: sinon.stub() }
|
||||
@@ -143,7 +140,6 @@ describe('ProjectController', function () {
|
||||
'./ProjectDeleter': this.ProjectDeleter,
|
||||
'./ProjectDuplicator': this.ProjectDuplicator,
|
||||
'./ProjectCreationHandler': this.ProjectCreationHandler,
|
||||
'./ProjectHistoryHandler': this.ProjectHistoryHandler,
|
||||
'../Editor/EditorController': this.EditorController,
|
||||
'../User/UserController': this.UserController,
|
||||
'./ProjectHelper': this.ProjectHelper,
|
||||
@@ -1028,18 +1024,6 @@ describe('ProjectController', function () {
|
||||
this.ProjectController.loadEditor(this.req, this.res)
|
||||
})
|
||||
|
||||
it('should ensureHistoryExistsForProject if saas and project_history enabled', function (done) {
|
||||
this.Features.hasFeature.withArgs('saas').returns(true)
|
||||
this.settings.apis.project_history = 'enabled'
|
||||
this.res.render = (pageName, opts) => {
|
||||
this.ProjectHistoryHandler.ensureHistoryExistsForProject
|
||||
.calledWith(this.project_id)
|
||||
.should.equal(true)
|
||||
done()
|
||||
}
|
||||
this.ProjectController.loadEditor(this.req, this.res)
|
||||
})
|
||||
|
||||
it('should mark project as opened', function (done) {
|
||||
this.res.render = (pageName, opts) => {
|
||||
this.ProjectUpdateHandler.markAsOpened
|
||||
|
||||
Reference in New Issue
Block a user