mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:43:41 +00:00
updated sandboxed-module and tests
This commit is contained in:
parent
cd0e7b3afd
commit
87737a403d
5 changed files with 8 additions and 13 deletions
16
services/track-changes/package-lock.json
generated
16
services/track-changes/package-lock.json
generated
|
@ -6456,21 +6456,13 @@
|
|||
"integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
|
||||
},
|
||||
"sandboxed-module": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-0.3.0.tgz",
|
||||
"integrity": "sha1-8fvvvYCaT2kHO9B8rm/H2y6vX2o=",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-2.0.3.tgz",
|
||||
"integrity": "sha1-x+VFkzm7y6KMUwPusz9ug4e/upY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"require-like": "0.1.2",
|
||||
"stack-trace": "0.0.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"stack-trace": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.6.tgz",
|
||||
"integrity": "sha1-HnGb1qJin/CcGJ4Xqe+QKpT8XbA=",
|
||||
"dev": true
|
||||
}
|
||||
"stack-trace": "0.0.9"
|
||||
}
|
||||
},
|
||||
"saslprep": {
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
"mocha": "^7.1.1",
|
||||
"prettier": "^2.0.1",
|
||||
"prettier-eslint-cli": "^5.0.0",
|
||||
"sandboxed-module": "~0.3.0",
|
||||
"sandboxed-module": "~2.0.3",
|
||||
"sinon": "~9.0.1",
|
||||
"timekeeper": "2.2.0"
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ const zlib = require('zlib')
|
|||
describe('MongoAWS', function() {
|
||||
beforeEach(function() {
|
||||
this.MongoAWS = SandboxedModule.require(modulePath, {
|
||||
singleOnly: true,
|
||||
requires: {
|
||||
'settings-sharelatex': (this.settings = {
|
||||
trackchanges: {
|
||||
|
|
|
@ -19,6 +19,7 @@ const SandboxedModule = require('sandboxed-module')
|
|||
describe('HttpController', function() {
|
||||
beforeEach(function() {
|
||||
this.HttpController = SandboxedModule.require(modulePath, {
|
||||
singleOnly: true,
|
||||
requires: {
|
||||
'logger-sharelatex': { log: sinon.stub() },
|
||||
'./UpdatesManager': (this.UpdatesManager = {}),
|
||||
|
|
|
@ -23,6 +23,7 @@ const SandboxedModule = require('sandboxed-module')
|
|||
describe('UpdatesManager', function() {
|
||||
beforeEach(function() {
|
||||
this.UpdatesManager = SandboxedModule.require(modulePath, {
|
||||
singleOnly: true,
|
||||
requires: {
|
||||
'./UpdateCompressor': (this.UpdateCompressor = {}),
|
||||
'./MongoManager': (this.MongoManager = {}),
|
||||
|
|
Loading…
Reference in a new issue