overleaf/services/clsi/test/setup.js

23 lines
438 B
JavaScript
Raw Normal View History

const chai = require('chai')
const sinonChai = require('sinon-chai')
const SandboxedModule = require('sandboxed-module')
// Setup chai
chai.should()
chai.use(sinonChai)
// Global SandboxedModule settings
SandboxedModule.configure({
requires: {
'logger-sharelatex': {
debug() {},
log() {},
info() {},
warn() {},
error() {},
2021-07-13 07:04:48 -04:00
err() {},
},
},
globals: { Buffer, console, process, URL },
})