overleaf/services/spelling/test/setup.js
2021-07-13 12:04:47 +01:00

21 lines
403 B
JavaScript

const chai = require('chai')
const SandboxedModule = require('sandboxed-module')
// Chai configuration
chai.should()
// SandboxedModule configuration
SandboxedModule.configure({
requires: {
'logger-sharelatex': {
debug() {},
log() {},
info() {},
warn() {},
err() {},
error() {},
fatal() {},
},
},
globals: { Buffer, JSON, console, process },
})