Merge pull request #4715 from overleaf/ab-project-members-modal-split-test

Share modal split test

GitOrigin-RevId: 274450564e1cbfc3ba3ec7c2ca60dfeda552a536
This commit is contained in:
Alexandre Bourdin
2021-08-19 17:42:49 +02:00
committed by Copybot
parent dec0a501ad
commit dd48a1cc3f
14 changed files with 340 additions and 94 deletions
@@ -130,6 +130,14 @@ describe('ProjectController', function () {
},
getTestSegmentation: sinon.stub().yields(null, { enabled: false }),
}
this.SplitTestV2Handler = {
promises: {
getAssignment: sinon.stub().resolves({ active: false }),
assignInLocalsContext: sinon.stub().resolves(),
},
getAssignment: sinon.stub().yields(null, { active: false }),
assignInLocalsContext: sinon.stub().yields(null),
}
this.ProjectController = SandboxedModule.require(MODULE_PATH, {
requires: {
@@ -137,6 +145,7 @@ describe('ProjectController', function () {
'@overleaf/settings': this.settings,
'@overleaf/metrics': this.Metrics,
'../SplitTests/SplitTestHandler': this.SplitTestHandler,
'../SplitTests/SplitTestV2Handler': this.SplitTestV2Handler,
'./ProjectDeleter': this.ProjectDeleter,
'./ProjectDuplicator': this.ProjectDuplicator,
'./ProjectCreationHandler': this.ProjectCreationHandler,