[web] Add deletedReason parameter to project deletion methods (#32221)
* [web] Add deletedReason parameter to project deletion methods * revert sinon.match.any in ProjectDuplicator negative assertion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> GitOrigin-RevId: d1595eefe0e36150231ee9646fe5eba0786fd1f5
This commit is contained in:
committed by
Copybot
co-authored by
Copilot Autofix powered by AI
parent
c9ba2ac025
commit
6486ef3e1e
@@ -445,7 +445,8 @@ describe('ProjectUploadManager', function () {
|
||||
|
||||
it('should cleanup the blank project created', async function (ctx) {
|
||||
ctx.ProjectDeleter.promises.deleteProject.should.have.been.calledWith(
|
||||
ctx.project._id
|
||||
ctx.project._id,
|
||||
{ deletedReason: 'zip-import-failure' }
|
||||
)
|
||||
})
|
||||
|
||||
@@ -471,7 +472,8 @@ describe('ProjectUploadManager', function () {
|
||||
|
||||
it('should cleanup the blank project created', function (ctx) {
|
||||
ctx.ProjectDeleter.promises.deleteProject.should.have.been.calledWith(
|
||||
ctx.project._id
|
||||
ctx.project._id,
|
||||
{ deletedReason: 'zip-import-failure' }
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user