mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
02918e7483
[perf] UrlCache: pure fs based cache state for downloads GitOrigin-RevId: d19afc396324d4c3318b31620c8ad0c04e0544ce
22 lines
438 B
JavaScript
22 lines
438 B
JavaScript
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() {},
|
|
err() {},
|
|
},
|
|
},
|
|
globals: { Buffer, console, process, URL },
|
|
})
|