updated sandboxed-module, chai and metrics-sharelatex

This commit is contained in:
mserranom
2020-03-16 17:14:04 +01:00
parent 6f837f1a74
commit 4a47f21edd
4 changed files with 52 additions and 43 deletions

View File

@@ -23,6 +23,7 @@ const Errors = require('../../../app/js/Errors')
describe('ResourceStateManager', function() {
beforeEach(function() {
this.ResourceStateManager = SandboxedModule.require(modulePath, {
singleOnly: true,
requires: {
fs: (this.fs = {}),
'logger-sharelatex': { log: sinon.stub(), err: sinon.stub() },

View File

@@ -24,6 +24,7 @@ describe('ResourceWriter', function() {
beforeEach(function() {
let Timer
this.ResourceWriter = SandboxedModule.require(modulePath, {
singleOnly: true,
requires: {
fs: (this.fs = {
mkdir: sinon.stub().callsArg(1),