import {Transform} from '@serenity-js/core/lib/screenplay/questions'
public class | source

Transform

Extends:

src/screenplay/Question.js~Question → Transform
this class is experimental.

Static Method Summary

Static Public Methods
public static

the(questions: Answerable | Array, transformation: Function): *

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

subject: *

Method Summary

Public Methods
public

answeredBy(actor: AnswersQuestions & UsesAbilities): Promise

public

as(description: string): Transform<Answer_Type, Output_Type>

this method was deprecated. Please use {@link Transform#describedAs} instead

Overrides the default Transform#toString representation of this object.

public

describedAs(subject: string): UNKNOWN

Changes the description of this question's subject.

Static Public Methods

public static the(questions: Answerable | Array, transformation: Function): * source

Params:

NameTypeAttributeDescription
questions Answerable | Array
transformation Function

Returns:

*

Public Constructors

public constructor() source

Public Members

public subject: * source

Public Methods

public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise source

Params:

NameTypeAttributeDescription
actor AnswersQuestions & UsesAbilities

Returns:

Promise

public as(description: string): Transform<Answer_Type, Output_Type> source

this method was deprecated. Please use {@link Transform#describedAs} instead

Overrides the default Transform#toString representation of this object.

Params:

NameTypeAttributeDescription
description string

Returns:

Transform<Answer_Type, Output_Type>

public describedAs(subject: string): UNKNOWN source

Changes the description of this question's subject.

Params:

NameTypeAttributeDescription
subject string

Returns:

UNKNOWN