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-04-01 02:05:52 +00:00
committed by Copybot
parent c2f16621db
commit 9ddaa8c9f6
176 changed files with 695 additions and 1555 deletions
@@ -12,9 +12,7 @@
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const sinon = require('sinon')
const chai = require('chai')
const should = chai.should()
const { expect } = chai
const { expect } = require('chai')
const modulePath =
'../../../../app/src/Features/Authorization/AuthorizationManager.js'
const SandboxedModule = require('sandboxed-module')
@@ -24,9 +22,6 @@ const { ObjectId } = require('mongodb')
describe('AuthorizationManager', function() {
beforeEach(function() {
this.AuthorizationManager = SandboxedModule.require(modulePath, {
globals: {
console: console
},
requires: {
mongodb: { ObjectId },
'../Collaborators/CollaboratorsGetter': (this.CollaboratorsGetter = {}),