Options
All
  • Public
  • Public/Protected
  • All
Menu

Context that can be used in tests against the queue.

Hierarchy

  • TestContext
    • TestContext

Index

Properties

cache: Cache
kernel: Kernel
logContext: LogContext
pool: Pool
queue: { actor: string; consumer: Consumer; producer: Producer }

Type declaration

session: string

Methods

  • createLink(fromCard: Contract<ContractData, {}>, toCard: Contract<ContractData, {}>, verb: string, inverseVerb: string): Promise<LinkContract>
  • Parameters

    • fromCard: Contract<ContractData, {}>
    • toCard: Contract<ContractData, {}>
    • verb: string
    • inverseVerb: string

    Returns Promise<LinkContract>

  • createOrg(name: string): Promise<OrgContract>
  • Parameters

    • name: string

    Returns Promise<OrgContract>

  • createSession(user: UserContract): Promise<SessionContract>
  • Parameters

    • user: UserContract

    Returns Promise<SessionContract>

  • createUser(username: string, hash?: string, roles?: string[]): Promise<UserContract>
  • Parameters

    • username: string
    • Optional hash: string
    • Optional roles: string[]

    Returns Promise<UserContract>

Generated using TypeDoc