mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #17184 from overleaf/msm-run-all-fake-timers
[web] Run fake timers with runAll() instead of next() GitOrigin-RevId: 5ba89d66487a0222d17dbf576e9eeab76a572b0e
This commit is contained in:
parent
079a86ec53
commit
05edb22be0
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.next()
|
||||
this.clock.runAll()
|
||||
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.next()
|
||||
this.clock.runAll()
|
||||
expect(this.RootDocManager.promises.setRootDocAutomatically).not.to.have
|
||||
.been.called
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue