MCPcopy Create free account
hub / github.com/garris/BackstopJS / extractReport

Function extractReport

core/util/remote.js:9–12  ·  view source on GitHub ↗

* Extract jsonReport from the jsonpReport * * @param {String} jsonpReport - jsonpReport `report(${jsonReport});` * @return {Object} an object of jsonReport

(jsonpReport)

Source from the content-addressed store, hash-verified

7 * @return {Object} an object of jsonReport
8 */
9function 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.

Callers 1

modifyJsonpReportHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected