Merge pull request #28506 from overleaf/bg-size-limits
add size check when cloning project (logging only) GitOrigin-RevId: 1f56ed80a2d05b28c44fab8532d751ad8e758943
This commit is contained in:
@@ -212,6 +212,13 @@ describe('ProjectDuplicator', function () {
|
||||
flushProjectToTpds: sinon.stub().resolves(),
|
||||
},
|
||||
}
|
||||
ctx.Modules = {
|
||||
promises: {
|
||||
hooks: {
|
||||
fire: sinon.stub().resolves([]),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
vi.doMock('../../../../app/src/models/Doc', () => ({
|
||||
Doc: ctx.Doc,
|
||||
@@ -287,6 +294,10 @@ describe('ProjectDuplicator', function () {
|
||||
default: ctx.HistoryManager,
|
||||
}))
|
||||
|
||||
vi.doMock('../../../../app/src/infrastructure/Modules', () => ({
|
||||
default: ctx.Modules,
|
||||
}))
|
||||
|
||||
vi.doMock('../../../../app/src/Features/Compile/ClsiCacheManager', () => ({
|
||||
default: {
|
||||
prepareClsiCache: sinon.stub().rejects(new Error('ignore this')),
|
||||
|
||||
Reference in New Issue
Block a user