mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
[web] dumpFolder is created on app start (#23559)
GitOrigin-RevId: e05c920f27a79a59e0c9408780b9c005b0dac350
This commit is contained in:
@@ -927,19 +927,14 @@ describe('ProjectStructureChanges', function () {
|
||||
throw error
|
||||
}
|
||||
exampleProjectId = projectId
|
||||
fs.mkdir(Settings.path.dumpFolder, { recursive: true }, error => {
|
||||
ProjectGetter.getProject(exampleProjectId, (error, project) => {
|
||||
if (error) {
|
||||
throw error
|
||||
}
|
||||
ProjectGetter.getProject(exampleProjectId, (error, project) => {
|
||||
if (error) {
|
||||
throw error
|
||||
}
|
||||
MockDocUpdaterApi.reset()
|
||||
rootFolderId = project.rootFolder[0]._id.toString()
|
||||
oldVersion = project.version
|
||||
done()
|
||||
})
|
||||
MockDocUpdaterApi.reset()
|
||||
rootFolderId = project.rootFolder[0]._id.toString()
|
||||
oldVersion = project.version
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { expect } from 'chai'
|
||||
import _ from 'lodash'
|
||||
import fs from 'node:fs'
|
||||
import timekeeper from 'timekeeper'
|
||||
import Settings from '@overleaf/settings'
|
||||
import UserHelper from './helpers/User.mjs'
|
||||
@@ -48,7 +47,6 @@ describe('LinkedFiles', function () {
|
||||
beforeEach(async function () {
|
||||
owner = new User()
|
||||
await owner.login()
|
||||
await fs.promises.mkdir(Settings.path.dumpFolder, { recursive: true })
|
||||
})
|
||||
|
||||
describe('creating a project linked file', function () {
|
||||
|
||||
Reference in New Issue
Block a user