helper.js
/**
  * Abstract method to provide common interface to accessing helpers internals inside a test.
  */
Abstract method to provide common interface to accessing helpers internals inside a test.
Abstract method to provide common interface to accessing helpers internals inside a test .
_useTo(description, fn) {
    if (!description || !fn) throw new Error('useTo requires "description:string" and "fn:async function" as arguments');
    if (fn[Symbol.toStringTag] !== 'AsyncFunction') throw new Error(`Not async function!\n${fn}\nNative helpers API is asynchronous, please update this function be async`);
    fn.toString = () => 'fn()';
    return fn(this);
  }
_useTo ( description , fn ) { if ( ! description || ! fn ) throw new Error ( 'useTo requires "description:string" and "fn:async function" as arguments' ) ; if ( fn [ Symbol . toStringTag ] !== 'AsyncFunction' ) throw new Error ( ` \n ${ fn } \n ` ) ; fn . toString = ( ) => 'fn()' ; return fn ( this ) ; }
Abstract method to provide common interface to accessing helpers internals inside a test.
Abstract method to provide common interface to accessing helpers internals inside a test .