mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #30122 from overleaf/jel-fix-test
[web] Update path in test GitOrigin-RevId: 65a1a948a137abbc2d347e1ea9a698a49d31d74d
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user