testilo 48.0.0 → 48.0.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
CHANGED
|
@@ -75,6 +75,13 @@ exports.collateExcerpts = report => {
|
|
|
75
75
|
// For each path ID in it:
|
|
76
76
|
Object.keys(texts).forEach(pathID => {
|
|
77
77
|
const toolNames = Object.keys(texts[pathID]);
|
|
78
|
+
// XXX This will be needed only temporarily!
|
|
79
|
+
// Ensure that all of its texts are arrays.
|
|
80
|
+
Object.keys(texts[pathID]).forEach(toolName => {
|
|
81
|
+
if (typeof texts[pathID][toolName] === 'string') {
|
|
82
|
+
texts[pathID][toolName] = [texts[pathID][toolName]];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
78
85
|
// If the element has only 1 text:
|
|
79
86
|
if (toolNames.length === 1) {
|
|
80
87
|
// Change its key to unanimous.
|