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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user