@testomatio/reporter 2.3.7-beta.8-stack-artifacts → 2.3.7
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/lib/bin/cli.js +0 -0
- package/lib/bin/reportXml.js +0 -0
- package/lib/bin/startTest.js +3 -3
- package/lib/bin/uploadArtifacts.js +0 -0
- package/lib/client.js +6 -6
- package/lib/pipe/testomatio.js +1 -1
- package/lib/template/testomatio.hbs +1366 -1026
- package/lib/utils/utils.js +7 -3
- package/package.json +1 -1
- package/src/bin/startTest.js +5 -5
- package/src/client.js +8 -8
- package/src/pipe/testomatio.js +1 -1
- package/src/template/testomatio.hbs +1366 -1026
- package/src/utils/utils.js +7 -3
package/src/utils/utils.js
CHANGED
|
@@ -429,10 +429,14 @@ function transformEnvVarToBoolean(value) {
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
function truncate(s, size = 255) {
|
|
432
|
-
if (s
|
|
433
|
-
return
|
|
432
|
+
if (s === undefined || s === null) {
|
|
433
|
+
return '';
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
const str = s.toString();
|
|
436
|
+
if (str.trim().length < size) {
|
|
437
|
+
return str;
|
|
438
|
+
}
|
|
439
|
+
return `${str.substring(0, size)}...`;
|
|
436
440
|
}
|
|
437
441
|
|
|
438
442
|
export {
|