Options
All
  • Public
  • Public/Protected
  • All
Menu

Expectations for chai based frameworks

Hierarchy

  • ChaiExpectation

Implements

Index

Constructors

constructor

Properties

Private message

message: string

Private subject

subject: __type

Methods

Private checkForMatchingAttachments

  • checkForMatchingAttachments(outgoingAttachments: IAttachment[], expectedAttachments: IAttachment[]): boolean

notToBeEmpty

  • notToBeEmpty(): void

toBeTrue

  • toBeTrue(): void

toDeeplyInclude

  • toDeeplyInclude(outgoingMessage: IMessage): void
  • deeply compares an outgoing message with the expected messages that are considered valid for this test to pass. It does a subset comparison, so as long as the expected message is a subset of one of the expected responses, this will pass

    Parameters

    • outgoingMessage: IMessage

      actual message that bot sends

    Returns void

toEqual

  • toEqual(value: __type): void

toInclude

  • toInclude(value: __type): void