mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
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:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user