Merge pull request #30122 from overleaf/jel-fix-test

[web] Update path in test

GitOrigin-RevId: 65a1a948a137abbc2d347e1ea9a698a49d31d74d
This commit is contained in:
Jessica Lawshe
2025-12-05 09:06:11 +00:00
committed by Copybot
parent bfd618b8e4
commit 6f34fa869d
@@ -1,6 +1,6 @@
import { expect, vi } from 'vitest'
import sinon from 'sinon'
import MockResponse from '../helpers/MockResponse.js'
import MockResponse from '../helpers/MockResponse.mjs'
const modulePath =
'../../../../app/src/Features/Subscription/TeamInvitesController'
@@ -289,13 +289,13 @@ describe('TeamInvitesController', function () {
email,
},
}
ctx.res = new MockResponse()
ctx.res = new MockResponse(vi)
ctx.next = sinon.stub()
})
it('sends the invite email again', async function (ctx) {
await new Promise(resolve => {
const res = new MockResponse()
const res = new MockResponse(vi)
res.callback = () => {
res.statusCode.should.equal(200)
resolve()
@@ -314,7 +314,7 @@ describe('TeamInvitesController', function () {
it('sends the invite again', async function (ctx) {
await new Promise(resolve => {
const res = new MockResponse()
const res = new MockResponse(vi)
res.callback = () => {
sinon.assert.calledWith(
ctx.Modules.promises.hooks.fire,