mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Update paths
GitOrigin-RevId: 399c594dd1bbf739d91874df6be3b70e57fe01e3
This commit is contained in:
@@ -4,12 +4,12 @@ import Settings from '@overleaf/settings'
|
||||
import Path from 'node:path'
|
||||
import logger from '@overleaf/logger'
|
||||
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 EmailHandler from '../../../../app/src/Features/Email/EmailHandler.mjs'
|
||||
import UserGetter from '../../../../app/src/Features/User/UserGetter.mjs'
|
||||
import { User } from '../../../../app/src/models/User.js'
|
||||
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.js'
|
||||
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.mjs'
|
||||
import AuthenticationController from '../../../../app/src/Features/Authentication/AuthenticationController.mjs'
|
||||
import SessionManager from '../../../../app/src/Features/Authentication/SessionManager.js'
|
||||
import SessionManager from '../../../../app/src/Features/Authentication/SessionManager.mjs'
|
||||
import AdminAuthorizationHelper from '../../../../app/src/Features/Helpers/AdminAuthorizationHelper.mjs'
|
||||
|
||||
const { hasAdminAccess } = AdminAuthorizationHelper
|
||||
|
||||
@@ -42,11 +42,11 @@ describe('LaunchpadController', function () {
|
||||
})
|
||||
)
|
||||
|
||||
vi.doMock('../../../../../app/src/Features/Email/EmailHandler.js', () => ({
|
||||
vi.doMock('../../../../../app/src/Features/Email/EmailHandler.mjs', () => ({
|
||||
default: (ctx.EmailHandler = { promises: {} }),
|
||||
}))
|
||||
|
||||
vi.doMock('../../../../../app/src/Features/User/UserGetter.js', () => ({
|
||||
vi.doMock('../../../../../app/src/Features/User/UserGetter.mjs', () => ({
|
||||
default: (ctx.UserGetter = {
|
||||
promises: {},
|
||||
}),
|
||||
@@ -64,14 +64,14 @@ describe('LaunchpadController', function () {
|
||||
)
|
||||
|
||||
vi.doMock(
|
||||
'../../../../../app/src/Features/Authentication/AuthenticationManager.js',
|
||||
'../../../../../app/src/Features/Authentication/AuthenticationManager.mjs',
|
||||
() => ({
|
||||
default: (ctx.AuthenticationManager = {}),
|
||||
})
|
||||
)
|
||||
|
||||
vi.doMock(
|
||||
'../../../../../app/src/Features/Authentication/SessionManager.js',
|
||||
'../../../../../app/src/Features/Authentication/SessionManager.mjs',
|
||||
() => ({
|
||||
default: (ctx.SessionManager = {
|
||||
getSessionUser: sinon.stub(),
|
||||
|
||||
Reference in New Issue
Block a user