Interface NotAssertions<T>
interface NotAssertions<T> { toBe(unexpected: T): void; toBeFalsy(): void; toBeOfType<U>( ...params: <V>() => V extends T ? 1 : 2 extends <V>() => V extends U ? 1 : 2 ? ["ERROR: The types are the same"] : [], ): void; toBeTruthy(): void; toEqual(unexpected: Exclude<T, Function | Promise<unknown>>): void; toReject(): Promise<void>; toThrow(): void;} Methods
toBe
- toBe(unexpected: T): void
Returns void
toBeFalsy
- toBeFalsy(): void
Returns void
toBeOfType
- toBeOfType<U>(
...params: <V>() => V extends T ? 1 : 2 extends <V>() => V extends U
? 1
: 2
? ["ERROR: The types are the same"]
: [],
): void Parameters
- ...params: <V>() => V extends T ? 1 : 2 extends <V>() => V extends U ? 1 : 2
? ["ERROR: The types are the same"]
: []
Returns void
toBeTruthy
- toBeTruthy(): void
Returns void
toEqual
- toEqual(unexpected: Exclude<T, Function | Promise<unknown>>): void
Parameters
- unexpected: Exclude<T, Function | Promise<unknown>>
Returns void
toReject
- toReject(): Promise<void>
Returns Promise<void>
toThrow
- toThrow(): void
Returns void
Negated assertions