mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
|
const chai = require('chai')
|
||
|
const SandboxedModule = require('sandboxed-module')
|
||
|
|
||
|
// Setup should interface
|
||
|
chai.should()
|
||
|
|
||
|
// Global SandboxedModule settings
|
||
|
SandboxedModule.configure({
|
||
|
requires: {
|
||
|
'logger-sharelatex': {
|
||
|
log() {},
|
||
|
info() {},
|
||
|
warn() {},
|
||
|
error() {},
|
||
|
err() {}
|
||
|
}
|
||
|
},
|
||
|
globals: { Buffer, console, process }
|
||
|
})
|