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
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
assertResolve
▸ assertResolve(assert
, fn
, message?
): Promise
<void
>
Parameters
Name | Type |
---|---|
assert |
any |
fn |
() => Promise <any > |
message? |
string |
Returns
Promise
<void
>