mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Update acceptance tests
GitOrigin-RevId: cf8bc3f86ccff15df8e20ceda6842dad8538d5e3
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
import PasswordResetRouter from '../../../app/src/Features/PasswordReset/PasswordResetRouter.js'
|
import PasswordResetRouter from '../../../app/src/Features/PasswordReset/PasswordResetRouter.mjs'
|
||||||
import UserHelper from './helpers/UserHelper.js'
|
import UserHelper from './helpers/UserHelper.js'
|
||||||
|
|
||||||
describe('PasswordUpdate', function () {
|
describe('PasswordUpdate', function () {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { expect } from 'chai'
|
|||||||
import Async from 'async'
|
import Async from 'async'
|
||||||
import User from './helpers/User.js'
|
import User from './helpers/User.js'
|
||||||
import settings from '@overleaf/settings'
|
import settings from '@overleaf/settings'
|
||||||
import CollaboratorsEmailHandler from '../../../app/src/Features/Collaborators/CollaboratorsEmailHandler.js'
|
import CollaboratorsEmailHandler from '../../../app/src/Features/Collaborators/CollaboratorsEmailHandler.mjs'
|
||||||
import CollaboratorsInviteHelper from '../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.js'
|
import CollaboratorsInviteHelper from '../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.js'
|
||||||
import Features from '../../../app/src/infrastructure/Features.js'
|
import Features from '../../../app/src/infrastructure/Features.js'
|
||||||
import cheerio from 'cheerio'
|
import cheerio from 'cheerio'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import AbstractMockApi from './AbstractMockApi.js'
|
|||||||
|
|
||||||
class MockNotificationsApi extends AbstractMockApi {
|
class MockNotificationsApi extends AbstractMockApi {
|
||||||
applyRoutes() {
|
applyRoutes() {
|
||||||
this.app.get('/*', (req, res) => res.sendStatus(200))
|
this.app.get('/*', (req, res) => res.json([]))
|
||||||
this.app.post('/*', (req, res) => res.sendStatus(200))
|
this.app.post('/*', (req, res) => res.sendStatus(200))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user