/**
 * Author: Bruno Grieder
 * Date:   18/04/2014
 * Time:   15:04
 */ require ( 'source-map-support' ) . install ( ) ; export function _beforeEach ( ) { console . log ( '\n\nTEST start >>>>>>>>> ' + this [ 'currentTest' ] . fullTitle ( ) ) ; } export function _afterEach ( ) { if ( this [ 'currentTest' ] . state === 'failed' ) { console . error ( 'TEST FAILED <<<<<<<<< ' + this [ 'currentTest' ] . fullTitle ( ) + ': ' + this [ 'currentTest' ] . err . message + '\n' ) ; } else { console . log ( 'TEST OK <<<<<<<<< ' + this [ 'currentTest' ] . fullTitle ( ) + '\n' ) ; } } export function checkFail ( done , asserts ) { try { asserts ( ) ; done ( ) ; } catch ( e ) { console . error ( 'TEST ERROR> ' + e . message , e ) ; done ( e ) ; } }