code: function checkJasmineStatus() {
    // Only inject the source once.
    if (jasmineFound) {
      return;
    }
  
    var found = page.evaluate(function () {
      return "jasmine" in window && jasmine.getEnv;
    });
  
    if (!found) {
      return;
    }
  
    jasmineFound = true;
  
    injectReporter();
  }
docs: Tests whether the global jasmine object is available yet and if so, inject the source for the ConsoleReporter.