mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Make sure req.capabilitySet is defined
GitOrigin-RevId: 408dcb3463884d1bbdc56f409121728d1275f501
This commit is contained in:
@@ -155,6 +155,7 @@ describe('UserPagesController', function () {
|
||||
|
||||
ctx.UserPagesController = (await import(modulePath)).default
|
||||
ctx.req = new MockRequest()
|
||||
ctx.req.capabilitySet = new Set()
|
||||
ctx.req.session.user = ctx.user
|
||||
ctx.res = new MockResponse()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user