mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix metrics includes in SandboxedModule
This commit is contained in:
parent
eae7d28495
commit
495424a94b
2 changed files with 4 additions and 8 deletions
|
@ -29,10 +29,8 @@ describe('FileConverter', function() {
|
|||
err() {}
|
||||
},
|
||||
'metrics-sharelatex': {
|
||||
inc() {},
|
||||
Timer() {
|
||||
return { done() {} }
|
||||
}
|
||||
inc: sinon.stub(),
|
||||
Timer: sinon.stub().returns({ done: sinon.stub() })
|
||||
},
|
||||
'settings-sharelatex': (this.Settings = {
|
||||
commands: {
|
||||
|
|
|
@ -48,10 +48,8 @@ describe('LocalFileWriter', function() {
|
|||
},
|
||||
'settings-sharelatex': this.settings,
|
||||
'metrics-sharelatex': {
|
||||
inc() {},
|
||||
Timer() {
|
||||
return { done() {} }
|
||||
}
|
||||
inc: sinon.stub(),
|
||||
Timer: sinon.stub().returns({ done: sinon.stub() })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue