mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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="
|
"integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
|
||||||
},
|
},
|
||||||
"sandboxed-module": {
|
"sandboxed-module": {
|
||||||
"version": "0.3.0",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-2.0.3.tgz",
|
||||||
"integrity": "sha1-8fvvvYCaT2kHO9B8rm/H2y6vX2o=",
|
"integrity": "sha1-x+VFkzm7y6KMUwPusz9ug4e/upY=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"require-like": "0.1.2",
|
"require-like": "0.1.2",
|
||||||
"stack-trace": "0.0.6"
|
"stack-trace": "0.0.9"
|
||||||
},
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"saslprep": {
|
"saslprep": {
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
"mocha": "^7.1.1",
|
"mocha": "^7.1.1",
|
||||||
"prettier": "^2.0.1",
|
"prettier": "^2.0.1",
|
||||||
"prettier-eslint-cli": "^5.0.0",
|
"prettier-eslint-cli": "^5.0.0",
|
||||||
"sandboxed-module": "~0.3.0",
|
"sandboxed-module": "~2.0.3",
|
||||||
"sinon": "~9.0.1",
|
"sinon": "~9.0.1",
|
||||||
"timekeeper": "2.2.0"
|
"timekeeper": "2.2.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ const zlib = require('zlib')
|
||||||
describe('MongoAWS', function() {
|
describe('MongoAWS', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
this.MongoAWS = SandboxedModule.require(modulePath, {
|
this.MongoAWS = SandboxedModule.require(modulePath, {
|
||||||
|
singleOnly: true,
|
||||||
requires: {
|
requires: {
|
||||||
'settings-sharelatex': (this.settings = {
|
'settings-sharelatex': (this.settings = {
|
||||||
trackchanges: {
|
trackchanges: {
|
||||||
|
|
|
@ -19,6 +19,7 @@ const SandboxedModule = require('sandboxed-module')
|
||||||
describe('HttpController', function() {
|
describe('HttpController', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
this.HttpController = SandboxedModule.require(modulePath, {
|
this.HttpController = SandboxedModule.require(modulePath, {
|
||||||
|
singleOnly: true,
|
||||||
requires: {
|
requires: {
|
||||||
'logger-sharelatex': { log: sinon.stub() },
|
'logger-sharelatex': { log: sinon.stub() },
|
||||||
'./UpdatesManager': (this.UpdatesManager = {}),
|
'./UpdatesManager': (this.UpdatesManager = {}),
|
||||||
|
|
|
@ -23,6 +23,7 @@ const SandboxedModule = require('sandboxed-module')
|
||||||
describe('UpdatesManager', function() {
|
describe('UpdatesManager', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
this.UpdatesManager = SandboxedModule.require(modulePath, {
|
this.UpdatesManager = SandboxedModule.require(modulePath, {
|
||||||
|
singleOnly: true,
|
||||||
requires: {
|
requires: {
|
||||||
'./UpdateCompressor': (this.UpdateCompressor = {}),
|
'./UpdateCompressor': (this.UpdateCompressor = {}),
|
||||||
'./MongoManager': (this.MongoManager = {}),
|
'./MongoManager': (this.MongoManager = {}),
|
||||||
|
|
Loading…
Reference in a new issue