Make sure req.capabilitySet is defined

GitOrigin-RevId: 408dcb3463884d1bbdc56f409121728d1275f501
This commit is contained in:
Andrew Rumble
2025-06-24 17:09:37 +01:00
committed by Copybot
parent 4550cfc6a0
commit 12a1a85a2f

View File

@@ -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()
})