mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #28981 from overleaf/ac-some-web-esm-migration-6
[web] Convert some Features/User files to ES modules GitOrigin-RevId: c0d487082fa4822c68130e1e98c043297d4bedeb
This commit is contained in:
@@ -4,7 +4,7 @@ import Settings from '@overleaf/settings'
|
||||
import Path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import logger from '@overleaf/logger'
|
||||
import UserRegistrationHandler from '../../../../app/src/Features/User/UserRegistrationHandler.js'
|
||||
import UserRegistrationHandler from '../../../../app/src/Features/User/UserRegistrationHandler.mjs'
|
||||
import EmailHandler from '../../../../app/src/Features/Email/EmailHandler.js'
|
||||
import UserGetter from '../../../../app/src/Features/User/UserGetter.js'
|
||||
import { User } from '../../../../app/src/models/User.js'
|
||||
|
||||
@@ -34,7 +34,7 @@ describe('LaunchpadController', function () {
|
||||
}))
|
||||
|
||||
vi.doMock(
|
||||
'../../../../../app/src/Features/User/UserRegistrationHandler.js',
|
||||
'../../../../../app/src/Features/User/UserRegistrationHandler.mjs',
|
||||
() => ({
|
||||
default: (ctx.UserRegistrationHandler = {
|
||||
promises: {},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import minimist from 'minimist'
|
||||
import { db } from '../../../app/src/infrastructure/mongodb.js'
|
||||
import UserRegistrationHandler from '../../../app/src/Features/User/UserRegistrationHandler.js'
|
||||
import UserRegistrationHandler from '../../../app/src/Features/User/UserRegistrationHandler.mjs'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import UserGetter from '../../../../app/src/Features/User/UserGetter.js'
|
||||
import UserRegistrationHandler from '../../../../app/src/Features/User/UserRegistrationHandler.js'
|
||||
import UserRegistrationHandler from '../../../../app/src/Features/User/UserRegistrationHandler.mjs'
|
||||
import ErrorController from '../../../../app/src/Features/Errors/ErrorController.mjs'
|
||||
import { expressify } from '@overleaf/promise-utils'
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ describe('UserActivateController', function () {
|
||||
}))
|
||||
|
||||
vi.doMock(
|
||||
'../../../../../app/src/Features/User/UserRegistrationHandler.js',
|
||||
'../../../../../app/src/Features/User/UserRegistrationHandler.mjs',
|
||||
() => ({
|
||||
default: ctx.UserRegistrationHandler,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user