lib/resultCollector.js
function mergeResults(spec, response) {
    for (var key in spec) {
        if (spec.hasOwnProperty(key)) {
            if (!response[key]) {
                response[key] = {};
            }

            for (var test in spec[key]) {
                if (spec[key].hasOwnProperty(test)) {
                    response[key][test] = spec[key][test];
                }
            }
        }
    }
    return response;
}
function mergeResults(spec, response) {
    for (var key in spec) {
        if (spec.hasOwnProperty(key)) {
            if (!response[key]) {
                response[key] = {};
            }

            for (var test in spec[key]) {
                if (spec[key].hasOwnProperty(test)) {
                    response[key][test] = spec[key][test];
                }
            }
        }
    }
    return response;
}
function mergeResults ( spec , response ) { for ( var key in spec ) { if ( spec . hasOwnProperty ( key ) ) { if ( ! response [ key ] ) { response [ key ] = { } ; } for ( var test in spec [ key ] ) { if ( spec [ key ] . hasOwnProperty ( test ) ) { response [ key ] [ test ] = spec [ key ] [ test ] ; } } } } return response ; }
Merge the results
Merge the results