testaro 59.0.1 → 59.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tests/testaro.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "59.0.1",
3
+ "version": "59.0.2",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/testaro.js CHANGED
@@ -221,7 +221,7 @@ exports.reporter = async (page, report, actIndex) => {
221
221
  let contaminatorsStarted = false;
222
222
  // Starting with the noncontaminators, for each rule invoked:
223
223
  for (const rule of calledBenignRules.concat(calledContaminators)) {
224
- const pageClosed = page.isClosed();
224
+ const pageClosed = page ? page.isClosed() : true;
225
225
  const isContaminator = contaminators.includes(rule);
226
226
  // If it is a contaminator other than the first one or the page has closed:
227
227
  if (contaminatorsStarted || pageClosed) {