Changes to c.test
:
- Breaking change: before a test passed if the
check
function returned anything other thanfalse
. Now, for a test to pass, thecheck
function must returntrue
- any other return value is considered an error. - Add optional
callback
function. - Allow for no-op tests (empty arrays).
- Add optional
ms
argument in thewait
function passed toaction
, to retry everyms
milliseconds until the condition is met orwait
is elapsed.