diff --git a/test/report/test-report-writereport.js b/test/report/test-report-writereport.js index 8a22600acfb..5ab3af0e299 100644 --- a/test/report/test-report-writereport.js +++ b/test/report/test-report-writereport.js @@ -37,6 +37,14 @@ function validate() { validate(); } +{ + // Test with an error with one line stack + const error = new Error(); + error.stack = 'only one line'; + process.report.writeReport(error); + validate(); +} + { // Test with a file argument. const file = process.report.writeReport('custom-name-1.json');