From 6f34fa869dd906d4ba339b4c7c1a68c1539fa469 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Thu, 4 Dec 2025 10:17:55 -0600 Subject: [PATCH] Merge pull request #30122 from overleaf/jel-fix-test [web] Update path in test GitOrigin-RevId: 65a1a948a137abbc2d347e1ea9a698a49d31d74d --- .../unit/src/Subscription/TeamInvitesController.test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/test/unit/src/Subscription/TeamInvitesController.test.mjs b/services/web/test/unit/src/Subscription/TeamInvitesController.test.mjs index fe52e388c1..b92e5a1c99 100644 --- a/services/web/test/unit/src/Subscription/TeamInvitesController.test.mjs +++ b/services/web/test/unit/src/Subscription/TeamInvitesController.test.mjs @@ -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,