Jelajahi Sumber

Update acceptance tests

GitOrigin-RevId: cf8bc3f86ccff15df8e20ceda6842dad8538d5e3
Andrew Rumble 2 tahun lalu
induk
melakukan
9490251251

+ 1 - 1
services/web/test/acceptance/src/PasswordUpdateTests.mjs

@@ -1,5 +1,5 @@
 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'
 
 describe('PasswordUpdate', function () {

+ 1 - 1
services/web/test/acceptance/src/ProjectInviteTests.mjs

@@ -2,7 +2,7 @@ import { expect } from 'chai'
 import Async from 'async'
 import User from './helpers/User.js'
 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 Features from '../../../app/src/infrastructure/Features.js'
 import cheerio from 'cheerio'

+ 1 - 1
services/web/test/acceptance/src/mocks/MockNotificationsApi.mjs

@@ -6,7 +6,7 @@ import AbstractMockApi from './AbstractMockApi.js'
 
 class MockNotificationsApi extends AbstractMockApi {
   applyRoutes() {
-    this.app.get('/*', (req, res) => res.sendStatus(200))
+    this.app.get('/*', (req, res) => res.json([]))
     this.app.post('/*', (req, res) => res.sendStatus(200))
   }
 }