Type alias Test<Value>

Test<Value>: { given: string; must: string; received: MaybePromise<Value>; wanted: MaybePromise<Value> }

Object that describes a test.


const test: Test<number> = {
given: "a number",
must: "make it double",
received: double(2),
wanted: 4,

Type Parameters

Type declaration

  • Readonly given: string

    Description of the given value.

  • Readonly must: string

    Description of the wanted value.

  • Readonly received: MaybePromise<Value>

    Value being tested.

  • Readonly wanted: MaybePromise<Value>

    Expected value.