Padloc Logo Docs & Resources

Module: spec/spec

Type Aliases

Spec

Ƭ Spec: (test: (name: string, fn: () => Promise<void>) => void, assert: any) => void

Type declaration

▸ (test, assert): void

Parameters
Name Type
test (name: string, fn: () => Promise<void>) => void
assert any
Returns

void

Defined in

core/src/spec/spec.ts:4

Functions

assertReject

assertReject(assert, fn, code, message?): Promise<void>

Parameters

Name Type
assert any
fn () => Promise<any>
code string
message? string

Returns

Promise<void>

Defined in

core/src/spec/spec.ts:17


assertResolve

assertResolve(assert, fn, message?): Promise<void>

Parameters

Name Type
assert any
fn () => Promise<any>
message? string

Returns

Promise<void>

Defined in

core/src/spec/spec.ts:6