Assertive.ts

A type-safe fluent assertion library

Assertive.ts - Core API / Expect

Interface: Expect

Callable

Expect

Expect(actual): BooleanAssertion

Parameters

Name Type
actual boolean

Returns

BooleanAssertion

Defined in

packages/core/src/lib/expect.ts:16

Expect

Expect(actual): NumberAssertion

Parameters

Name Type
actual number

Returns

NumberAssertion

Defined in

packages/core/src/lib/expect.ts:17

Expect

Expect(actual): StringAssertion

Parameters

Name Type
actual string

Returns

StringAssertion

Defined in

packages/core/src/lib/expect.ts:18

Expect

Expect(actual): DateAssertion

Parameters

Name Type
actual Date

Returns

DateAssertion

Defined in

packages/core/src/lib/expect.ts:19

Expect

Expect<T>(actual): ArrayAssertion<T>

Type parameters

Name
T

Parameters

Name Type
actual T[]

Returns

ArrayAssertion<T>

Defined in

packages/core/src/lib/expect.ts:20

Expect

Expect<T>(actual): PromiseAssertion<T, false>

Type parameters

Name
T

Parameters

Name Type
actual Promise<T>

Returns

PromiseAssertion<T, false>

Defined in

packages/core/src/lib/expect.ts:21

Expect

Expect<T>(actual): FunctionAssertion<T>

Type parameters

Name Type
T extends AnyFunction

Parameters

Name Type
actual T

Returns

FunctionAssertion<T>

Defined in

packages/core/src/lib/expect.ts:22

Expect

Expect<T>(actual): ErrorAssertion<T>

Type parameters

Name Type
T extends Error

Parameters

Name Type
actual T

Returns

ErrorAssertion<T>

Defined in

packages/core/src/lib/expect.ts:23

Expect

Expect<T>(actual): ObjectAssertion<T>

Type parameters

Name Type
T extends Struct

Parameters

Name Type
actual T

Returns

ObjectAssertion<T>

Defined in

packages/core/src/lib/expect.ts:24

Expect

Expect<T>(actual): Assertion<T>

Type parameters

Name
T

Parameters

Name Type
actual T

Returns

Assertion<T>

Defined in

packages/core/src/lib/expect.ts:25