overleaf/services/spelling/test/setup.js

22 lines
403 B
JavaScript
Raw Permalink Normal View History

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() {},
2021-07-13 07:04:47 -04:00
fatal() {},
},
},
2021-07-13 07:04:47 -04:00
globals: { Buffer, JSON, console, process },
})