method MockServiceRegistry.prototype.has
MockServiceRegistry.prototype.has(token: CapabilityToken): boolean

Reports whether a capability is available.

Parameters

token: CapabilityToken

The capability token to look up

Return Type

boolean

true if at least one provider is registered

Usage

import { MockServiceRegistry } from "testing/src/index.ts";