new Hook(title, fn)
Initialize a new Hook
with the given title
and callback fn
Parameters:
Name | Type | Description |
---|---|---|
title |
String | |
fn |
function |
Extends
Methods
error(err) → {Error}
Get or set the test err
.
Parameters:
Name | Type | Description |
---|---|---|
err |
Error |
Returns:
- Type
- Error
reset()
- Source:
- Overrides:
Resets the state for a next run.