wdio-timeline-reporter
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -256,4 +256,7 @@ const events = require('events'); | ||
const lastKey = Object.keys(spec.suites)[Object.keys(spec.suites).length - 1]; | ||
const currentTestKey = Object.keys(spec.suites[lastKey].tests)[Object.keys(spec.suites[lastKey].tests).length - 1]; | ||
spec.suites[lastKey].tests[currentTestKey].screenshots.push(runner.filename); | ||
const tests = Object.keys(spec.suites[lastKey].tests); | ||
if (tests.length > 0) { | ||
const currentTestKey = tests[tests.length - 1]; | ||
spec.suites[lastKey].tests[currentTestKey].screenshots.push(runner.filename); | ||
} | ||
}); | ||
@@ -260,0 +263,0 @@ |
{ | ||
"name": "wdio-timeline-reporter", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/timeline-reporter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16985
344