tasks/lib/coverageStats.js
function deleteStats(collection) {
      var coverageType;
      for (coverageType in collection) {
        if (collection.hasOwnProperty(coverageType)) {
          if (collection[coverageType].hasOwnProperty("total")) {
            delete collection[coverageType].total;
          }
          if (collection[coverageType].hasOwnProperty("covered")) {
            delete collection[coverageType].covered;
          }
          if (collection[coverageType].hasOwnProperty("skipped")) {
            delete collection[coverageType].skipped;
          }
        }
      }
    }
function deleteStats(collection) {
      var coverageType;
      for (coverageType in collection) {
        if (collection.hasOwnProperty(coverageType)) {
          if (collection[coverageType].hasOwnProperty("total")) {
            delete collection[coverageType].total;
          }
          if (collection[coverageType].hasOwnProperty("covered")) {
            delete collection[coverageType].covered;
          }
          if (collection[coverageType].hasOwnProperty("skipped")) {
            delete collection[coverageType].skipped;
          }
        }
      }
    }
function deleteStats ( collection ) { var coverageType ; for ( coverageType in collection ) { if ( collection . hasOwnProperty ( coverageType ) ) { if ( collection [ coverageType ] . hasOwnProperty ( "total" ) ) { delete collection [ coverageType ] . total ; } if ( collection [ coverageType ] . hasOwnProperty ( "covered" ) ) { delete collection [ coverageType ] . covered ; } if ( collection [ coverageType ] . hasOwnProperty ( "skipped" ) ) { delete collection [ coverageType ] . skipped ; } } } }
Helper function to delete total, covered and skipped statistic properties from a collection
@param {Object} collection - a collection of statistic properties
Helper function to delete total covered and skipped statistic properties from a collection