testaro 12.7.3 → 12.7.4

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/dupAtt.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "12.7.3",
3
+ "version": "12.7.4",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/dupAtt.js CHANGED
@@ -50,14 +50,12 @@ exports.reporter = async (page, withItems) => {
50
50
  rawPage = rawPage.replace(/<(script [^<>]+)>.*?<\/script>/g, '$1');
51
51
  // Remove any comments from it.
52
52
  rawPage = rawPage.replace(/<!--.*?-->/g, '');
53
- console.log(rawPage);
54
53
  // Extract the opening tags of its elements.
55
54
  let elements = rawPage.match(/<[a-zA-Z][^<>]+>/g);
56
55
  // Delete their enclosing angle brackets and the values of any attributes in them.
57
56
  elements = elements.map(el => el.replace(/^< *|=[^ ]*| *>$/g, ''));
58
57
  // For each element:
59
58
  elements.forEach(element => {
60
- console.log(element);
61
59
  // Identify its tag name and attributes.
62
60
  const terms = element.split(' ');
63
61
  // If it has 2 or more attributes: