nl_tokens: console . log ( ! -------------- Starting Test options . name ) ; data . push ( { name : Starting test + options . name } ) ;
pl_tokens: function ( err , inData ) { //console.log("!--------------  Checking Results", options.name, "Error: ", err, "Data:", inData); var passed = true ; if ( err ) { console . log ( "!------------ Error" , err . toString ( ) ) ; <mask> . push ( { name : options . name + " test failed with: " , css : 'one' } ) ; data . push ( { name : "  " + err . toString ( ) , css : 'one' } ) ; return callback ( false ) ; } if ( ! inData || inData . length !== options . results . length ) { console . dir ( inData ) ; console . log ( "!----------- No Data" ) ; data . push ( { name : options . name + " test failed with different results length" , css : 'one' } ) ; return callback ( false ) ; } if ( inData . length === 0 ) { console . log ( "!-------- No Data Returned" ) ; return callback ( passed ) ; } //console.log("!------------ Data Returned", inData.length, inData); for ( var i = 0 ; i < inData . length ; i ++ ) { var result = checkRowOfData ( inData [ i ] , options . results [ i ] ) ; if ( ! result . status ) { passed = false ; data . push ( { name : options . name + " test failed on row: " + i + ", field: " + result . field , css : 'one' } ) ; console . log ( "$$$$$ Failure:" , inData [ i ] , options . results [ i ] , typeof inData [ i ] [ result . field ] , typeof options . results [ i ] [ result . field ] ) ; break ; } } callback ( passed ) ; }