testaro 32.0.8 → 32.0.10
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 +1 -1
- package/procs/standardize.js +1 -1
- package/tests/ibm.js +1 -1
package/package.json
CHANGED
package/procs/standardize.js
CHANGED
|
@@ -226,7 +226,7 @@ const doNuVal = (result, standardResult, docType) => {
|
|
|
226
226
|
const tagNameLCArray = item.message.match(
|
|
227
227
|
/^Element ([^ ]+)|^An (img) element| (meta|script) element| element (script)| tag (script)/
|
|
228
228
|
);
|
|
229
|
-
if (tagNameLCArray && tagNameLCArray
|
|
229
|
+
if (tagNameLCArray && tagNameLCArray[1]) {
|
|
230
230
|
identifiers[0] = tagNameLCArray[1].toUpperCase();
|
|
231
231
|
}
|
|
232
232
|
}
|
package/tests/ibm.js
CHANGED
|
@@ -176,8 +176,8 @@ exports.reporter = async (page, options) => {
|
|
|
176
176
|
const contentType = withNewContent ? 'new' : 'existing';
|
|
177
177
|
console.log(`>>>>>> Content type: ${contentType}`);
|
|
178
178
|
const timeLimit = 25;
|
|
179
|
-
const typeContent = contentType === 'existing' ? await page.content() : await page.url();
|
|
180
179
|
try {
|
|
180
|
+
const typeContent = contentType === 'existing' ? await page.content() : await page.url();
|
|
181
181
|
const actReport = await doTest(typeContent, withItems, timeLimit, rules);
|
|
182
182
|
const {data, result} = actReport;
|
|
183
183
|
// If the act was prevented:
|