Merge pull request #17671 from overleaf/mj-project-projection
[web] Use projection when fetching project GitOrigin-RevId: 4c7eb6582dba9ffa81f8d34c4e353faf1dc15c83
This commit is contained in:
committed by
Copybot
parent
ce87ee3edb
commit
192c497508
@@ -48,9 +48,9 @@ describe('HistoryManager', function () {
|
||||
},
|
||||
}
|
||||
|
||||
this.ProjectModel = {
|
||||
Project: {
|
||||
findById: sinon.stub().returns(sinon.stub().resolves(this.project)),
|
||||
this.ProjectGetter = {
|
||||
promises: {
|
||||
getProject: sinon.stub().resolves(this.project),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('HistoryManager', function () {
|
||||
'@overleaf/fetch-utils': this.FetchUtils,
|
||||
'@overleaf/settings': this.settings,
|
||||
'../User/UserGetter': this.UserGetter,
|
||||
'../../models/Project': this.ProjectModel,
|
||||
'../Project/ProjectGetter': this.ProjectGetter,
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user