Fix metrics includes in SandboxedModule

This commit is contained in:
Simon Detheridge 2019-12-16 11:28:24 +00:00
parent eae7d28495
commit 495424a94b
2 changed files with 4 additions and 8 deletions

View file

@ -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: {

View file

@ -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() })
}
}
})