Merge pull request #26175 from overleaf/bg-fix-logging-in-project-deletion

test logging in user and project deletion

GitOrigin-RevId: ea51082aeada81f8e7ae356966cda0f57f7cd072
This commit is contained in:
Brian Gough
2025-06-25 08:05:24 +00:00
committed by Copybot
parent e6d09ca748
commit f0c63b6ccd
3 changed files with 48 additions and 1 deletions
@@ -36,6 +36,7 @@ describe('ProjectDeleter', function () {
deleterId: '588f3ddae8ebc1bac07c9fa4',
deleterIpAddress: '172.19.0.1',
deletedProjectId: '5cf9270b4eff6e186cf8b05e',
deletedProjectOwnerId: this.user._id,
},
project: {
_id: '5cf9270b4eff6e186cf8b05e',
@@ -501,6 +502,16 @@ describe('ProjectDeleter', function () {
projectId: this.deletedProjects[0].project._id,
})
})
it('should log a completed deletion', async function () {
expect(this.logger.info).to.have.been.calledWith(
{
projectId: this.deletedProjects[0].project._id,
userId: this.user._id,
},
'expired deleted project successfully'
)
})
})
describe('on an active project (from an incomplete delete)', function () {