Skip to main content

MockPermissionApi

Home > @backstage/test-utils > MockPermissionApi

Warning: This API is now obsolete.

Use mockApis.permission instead

Mock implementation of PermissionApi. Supply a requestHandler function to override the mock result returned for a given request.

Signature:

class MockPermissionApi implements PermissionApi 

Implements: PermissionApi

Constructors

Constructor

Modifiers

Description

(constructor)(requestHandler)

Constructs a new instance of the MockPermissionApi class

Methods

Method

Modifiers

Description

authorize(request)