src/comm/client/local-client.js
/**
 * Add new test result into global array
 * @param {Object} result test result, should be an array or a single JSON object
 */
Add new test result into global array
@param {Object} result test result, should be an array or a single JSON object
Add new test result into global array @param { Object } result test result should be an array or a single JSON object
function addResult(result) {
    if(Array.isArray(result)) { 
        for(let i = 0 ; i < result.length ; i++) {
            results.push(result[i]);
        }
    }
    else {
        results.push(result);
    }
}
function addResult ( result ) { if ( Array . isArray ( result ) ) { for ( let i = 0 ; i < result . length ; i ++ ) { results . push ( result [ i ] ) ; } } else { results . push ( result ) ; } }
Add new test result into global array
 @param {Object} result test result, should be an array or a single JSON object
Add new test result into global array @param { Object } result test result should be an array or a single JSON object
// contain multiple results