Merge pull request #3830 from overleaf/em-upgrade-node-12

Upgrade to Node 12

GitOrigin-RevId: 19870922884b7c98e7e5f2c94df21829672d2db5
This commit is contained in:
Eric Mc Sween
2021-03-31 08:20:55 -04:00
committed by Copybot
parent c2f16621db
commit 9ddaa8c9f6
176 changed files with 695 additions and 1555 deletions

View File

@@ -1,5 +1,4 @@
const chai = require('chai')
const { expect } = chai
const { expect } = require('chai')
const sinon = require('sinon')
const Errors = require('../../../../app/src/Features/Errors/Errors')
const SandboxedModule = require('sandboxed-module')
@@ -82,13 +81,6 @@ describe('ProjectEntityUpdateHandler', function() {
resyncProjectHistory: sinon.stub(),
deleteDoc: sinon.stub().yields()
}
this.logger = {
info: sinon.stub(),
log: sinon.stub(),
warn: sinon.stub(),
error: sinon.stub(),
err() {}
}
this.fs = {
unlink: sinon.stub().yields()
}
@@ -152,12 +144,8 @@ describe('ProjectEntityUpdateHandler', function() {
emitToRoom: sinon.stub()
}
this.ProjectEntityUpdateHandler = SandboxedModule.require(MODULE_PATH, {
globals: {
console: console
},
requires: {
'settings-sharelatex': { validRootDocExtensions: ['tex'] },
'logger-sharelatex': this.logger,
fs: this.fs,
'../../models/Doc': { Doc: this.DocModel },
'../Docstore/DocstoreManager': this.DocstoreManager,