Global test setup

Configure chai and SandboxedModule globally with options used in many
tests.

That required upgrading mocha and SandboxedModule.
This commit is contained in:
Eric Mc Sween
2021-03-16 16:48:45 -04:00
parent 23738540ed
commit dc5bfea181
38 changed files with 578 additions and 228 deletions
@@ -12,7 +12,6 @@ describe('HttpController', function () {
flushProjectChangesAsync: sinon.stub()
}),
'./ProjectManager': (this.ProjectManager = {}),
'logger-sharelatex': (this.logger = { log: sinon.stub() }),
'./ProjectFlusher': { flushAllProjects() {} },
'./DeleteQueueManager': (this.DeleteQueueManager = {}),
'./Metrics': (this.Metrics = {}),