testaro 5.2.0 → 5.2.1
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/tests/hover.js +13 -14
package/package.json
CHANGED
package/tests/hover.js
CHANGED
|
@@ -30,20 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
// CONSTANTS
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
totals: {
|
|
36
|
-
triggers: 0,
|
|
37
|
-
headTriggers: 0,
|
|
38
|
-
tailTriggers: 0,
|
|
39
|
-
impactTriggers: 0,
|
|
40
|
-
additions: 0,
|
|
41
|
-
removals: 0,
|
|
42
|
-
opacityChanges: 0,
|
|
43
|
-
opacityImpact: 0,
|
|
44
|
-
unhoverables: 0
|
|
45
|
-
}
|
|
46
|
-
};
|
|
33
|
+
const data = {};
|
|
47
34
|
|
|
48
35
|
// FUNCTIONS
|
|
49
36
|
|
|
@@ -218,6 +205,18 @@ const find = async (withItems, page, region, sample, popRatio) => {
|
|
|
218
205
|
exports.reporter = async (
|
|
219
206
|
page, headSize = 0, headSampleSize = -1, tailSampleSize = -1, withItems
|
|
220
207
|
) => {
|
|
208
|
+
// Initialize the result.
|
|
209
|
+
data.totals = {
|
|
210
|
+
triggers: 0,
|
|
211
|
+
headTriggers: 0,
|
|
212
|
+
tailTriggers: 0,
|
|
213
|
+
impactTriggers: 0,
|
|
214
|
+
additions: 0,
|
|
215
|
+
removals: 0,
|
|
216
|
+
opacityChanges: 0,
|
|
217
|
+
opacityImpact: 0,
|
|
218
|
+
unhoverables: 0
|
|
219
|
+
};
|
|
221
220
|
// If details are to be reported:
|
|
222
221
|
if (withItems) {
|
|
223
222
|
// Add properties for details to the initialized result.
|