MockPermissionApi.(constructor)
Home > @backstage/test-utils
> MockPermissionApi
> (constructor)
Constructs a new instance of the MockPermissionApi
class
Signature:
constructor(requestHandler?: (request: EvaluatePermissionRequest) => AuthorizeResult.ALLOW | AuthorizeResult.DENY);
Parameters
Parameter |
Type |
Description |
---|---|---|
requestHandler |
(request: EvaluatePermissionRequest) => AuthorizeResult.ALLOW | AuthorizeResult.DENY |
(Optional) |