Edit

Share via


UserTokenBasicMock class

Mock UserToken with user id and token.

Extends

Properties

$kind
channelId

Gets or sets the channel ID.

connectionName

Gets or sets the connection name.

magicCode

Gets or set the optional magic code to associate with this token.

token

Gets or set the token to store.

userId

Gets or sets the user ID.

Methods

setup(TestAdapter)

Method to setup this mock for an adapter.

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

getConverter(string)

Property Details

$kind

static $kind: string

Property Value

string

channelId

Gets or sets the channel ID.

channelId: string

Property Value

string

connectionName

Gets or sets the connection name.

connectionName: string

Property Value

string

magicCode

Gets or set the optional magic code to associate with this token.

magicCode: string

Property Value

string

token

Gets or set the token to store.

token: string

Property Value

string

userId

Gets or sets the user ID.

userId: string

Property Value

string

Method Details

setup(TestAdapter)

Method to setup this mock for an adapter.

function setup(adapter: TestAdapter)

Parameters

adapter

TestAdapter

The test adapter to use for mocking.

Inherited Method Details

configure(Record<string, unknown>)

Fluent method for configuring the object.

function configure(config: Record<string, unknown>): this

Parameters

config

Record<string, unknown>

Configuration settings to apply.

Returns

this

The Configurable after the operation is complete.

Inherited From Configurable.configure

getConverter(string)

function getConverter(_property: string): Converter | ConverterFactory

Parameters

_property

string

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.

Inherited From Configurable.getConverter