mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #29967 from overleaf/ar/web-remove-mocha-unit-tests
[web] remove mocha unit tests GitOrigin-RevId: eda753af3470dbd1f385cb0bc3f06d78ade8a764
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
*/
|
||||
import { expect, vi } from 'vitest'
|
||||
import sinon from 'sinon'
|
||||
import MockRequest from '../helpers/MockRequest.js'
|
||||
import MockResponse from '../helpers/MockResponse.js'
|
||||
import MockRequest from '../helpers/MockRequest.mjs'
|
||||
import MockResponse from '../helpers/MockResponse.mjs'
|
||||
import ArchiveErrors from '../../../../app/src/Features/Uploads/ArchiveErrors.mjs'
|
||||
|
||||
const modulePath =
|
||||
@@ -17,8 +17,8 @@ const modulePath =
|
||||
describe('ProjectUploadController', function () {
|
||||
beforeEach(async function (ctx) {
|
||||
let Timer
|
||||
ctx.req = new MockRequest()
|
||||
ctx.res = new MockResponse()
|
||||
ctx.req = new MockRequest(vi)
|
||||
ctx.res = new MockResponse(vi)
|
||||
ctx.user_id = 'user-id-123'
|
||||
ctx.metrics = {
|
||||
Timer: (Timer = (function () {
|
||||
|
||||
Reference in New Issue
Block a user