mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #16346 from overleaf/msm-remove-underscore
Remove `underscore` in monorepo GitOrigin-RevId: fd3b92e3e8a940a7a086669232102320c34a89e2
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const _ = require('underscore')
|
||||
const _ = require('lodash')
|
||||
const { expect } = require('chai')
|
||||
const { ObjectId } = require('mongodb')
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ const { ObjectId } = require('mongodb')
|
||||
const Path = require('path')
|
||||
const fs = require('fs')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const _ = require('underscore')
|
||||
const _ = require('lodash')
|
||||
|
||||
const ProjectGetter = require('../../../../../app/src/Features/Project/ProjectGetter')
|
||||
|
||||
@@ -201,8 +201,8 @@ describe('ProjectStructureChanges', function () {
|
||||
expect(update.userId).to.equal(owner._id)
|
||||
expect(update.docLines).to.be.a('string')
|
||||
}
|
||||
expect(_.where(updates, { pathname: '/main.tex' }).length).to.equal(1)
|
||||
expect(_.where(updates, { pathname: '/sample.bib' }).length).to.equal(1)
|
||||
expect(_.filter(updates, { pathname: '/main.tex' }).length).to.equal(1)
|
||||
expect(_.filter(updates, { pathname: '/sample.bib' }).length).to.equal(1)
|
||||
expect(updates[2].type).to.equal('add-file')
|
||||
expect(updates[2].userId).to.equal(owner._id)
|
||||
expect(updates[2].pathname).to.equal('/frog.jpg')
|
||||
@@ -249,8 +249,8 @@ describe('ProjectStructureChanges', function () {
|
||||
expect(update.userId).to.equal(owner._id)
|
||||
expect(update.docLines).to.be.a('string')
|
||||
}
|
||||
expect(_.where(updates, { pathname: '/main.tex' }).length).to.equal(1)
|
||||
expect(_.where(updates, { pathname: '/sample.bib' }).length).to.equal(1)
|
||||
expect(_.filter(updates, { pathname: '/main.tex' }).length).to.equal(1)
|
||||
expect(_.filter(updates, { pathname: '/sample.bib' }).length).to.equal(1)
|
||||
expect(updates[2].type).to.equal('add-file')
|
||||
expect(updates[2].userId).to.equal(owner._id)
|
||||
expect(updates[2].pathname).to.equal('/frog.jpg')
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const { expect } = require('chai')
|
||||
const _ = require('underscore')
|
||||
const _ = require('lodash')
|
||||
const fs = require('fs')
|
||||
const Path = require('path')
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const logger = require('@overleaf/logger')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const UserRegistrationHandler = require('../../../../app/src/Features/User/UserRegistrationHandler')
|
||||
const EmailHandler = require('../../../../app/src/Features/Email/EmailHandler')
|
||||
const _ = require('underscore')
|
||||
const _ = require('lodash')
|
||||
const UserGetter = require('../../../../app/src/Features/User/UserGetter')
|
||||
const { User } = require('../../../../app/src/models/User')
|
||||
const AuthenticationManager = require('../../../../app/src/Features/Authentication/AuthenticationManager')
|
||||
|
||||
Reference in New Issue
Block a user