mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
[web] Prevent errors from silently resolving and simplify promises in tests (#28621)
GitOrigin-RevId: e6ba7d25436c1350f8eef74df34dce03f93af909
This commit is contained in:
@@ -492,16 +492,13 @@ function receiveFileDelete() {
|
||||
|
||||
function receiveFileDeleteById() {
|
||||
beforeEach(async function (ctx) {
|
||||
await new Promise(resolve => {
|
||||
ctx.TpdsUpdateHandler.deleteUpdate(
|
||||
ctx.userId,
|
||||
ctx.projectId,
|
||||
'', // projectName
|
||||
ctx.path,
|
||||
ctx.source,
|
||||
resolve
|
||||
)
|
||||
})
|
||||
await ctx.TpdsUpdateHandler.promises.deleteUpdate(
|
||||
ctx.userId,
|
||||
ctx.projectId,
|
||||
'', // projectName
|
||||
ctx.path,
|
||||
ctx.source
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user