Upgrade metrics to @overleaf/metrics'

This commit is contained in:
Simon Detheridge
2020-09-10 18:07:14 +01:00
parent f7e4c95cb8
commit ad4531ff01
7 changed files with 133 additions and 128 deletions
@@ -23,6 +23,9 @@ const { ObjectId } = require('mongodb')
describe('HttpController', function () {
beforeEach(function () {
const settings = {
max_doc_length: 2 * 1024 * 1024
}
this.HttpController = SandboxedModule.require(modulePath, {
requires: {
'./DocManager': (this.DocManager = {}),
@@ -31,6 +34,7 @@ describe('HttpController', function () {
log: sinon.stub(),
error: sinon.stub()
}),
'settings-sharelatex': settings,
'./HealthChecker': {}
},
globals: { process }