mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
77aa2baa9d
Promisify CompileManager GitOrigin-RevId: 644ed061ae139d6196b24f8ead38579de6b844a3
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
const chai = require('chai')
|
|
const sinonChai = require('sinon-chai')
|
|
const chaiAsPromised = require('chai-as-promised')
|
|
const SandboxedModule = require('sandboxed-module')
|
|
|
|
// Setup chai
|
|
chai.should()
|
|
chai.use(sinonChai)
|
|
chai.use(chaiAsPromised)
|
|
|
|
// Global SandboxedModule settings
|
|
SandboxedModule.configure({
|
|
requires: {
|
|
'@overleaf/logger': {
|
|
debug() {},
|
|
log() {},
|
|
info() {},
|
|
warn() {},
|
|
error() {},
|
|
err() {},
|
|
},
|
|
},
|
|
globals: { Buffer, console, process, URL },
|
|
})
|