* Extract jsonReport from the jsonpReport * * @param {String} jsonpReport - jsonpReport `report(${jsonReport});` * @return {Object} an object of jsonReport
(jsonpReport)
| 7 | * @return {Object} an object of jsonReport |
| 8 | */ |
| 9 | function extractReport (jsonpReport) { |
| 10 | const jsonReport = jsonpReport.substring(7, jsonpReport.length - 2); |
| 11 | return JSON.parse(jsonReport); |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Helper function to modify the test status of the JSONP report based on the approved file name. |
no outgoing calls
no test coverage detected