Merge pull request #17189 from overleaf/revert-17184-msm-run-all-fake-timers

Revert "[web] Run fake timers with runAll() instead of next()"

GitOrigin-RevId: 878e18275e3b65cccc1441de4fe647601b5c6321
This commit is contained in:
Miguel Serrano 2024-02-19 13:04:33 +01:00 committed by Copybot
parent 39189978ac
commit eadbe8cddc

View file

@ -504,7 +504,7 @@ function expectProjectCreated() {
it('sets the root doc', function () {
// Fire pending timers
this.clock.runAll()
this.clock.next()
expect(
this.RootDocManager.promises.setRootDocAutomatically
).to.have.been.calledWith(this.projects.active1._id)
@ -519,7 +519,7 @@ function expectProjectNotCreated() {
it('does not set the root doc', function () {
// Fire pending timers
this.clock.runAll()
this.clock.next()
expect(this.RootDocManager.promises.setRootDocAutomatically).not.to.have
.been.called
})