testaro 5.17.2 → 5.17.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "5.17.2",
3
+ "version": "5.17.3",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/titledEl.js CHANGED
@@ -10,7 +10,9 @@ exports.reporter = async (page, withItems) => {
10
10
  badTitleElements => {
11
11
  // FUNCTION DEFINITION START
12
12
  // Returns a space-minimized copy of a string.
13
- const compact = string => string.replace(/[\t\n]/g, '').replace(/\s{2,}/g, ' ').trim();
13
+ const compact = string => string
14
+ ? string.replace(/[\t\n]/g, '').replace(/\s{2,}/g, ' ').trim()
15
+ : '';
14
16
  // FUNCTION DEFINITION END
15
17
  return badTitleElements.map(element => ({
16
18
  tagName: element.tagName,