mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
39189978ac
commit
eadbe8cddc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue