Skip to content
Permalink
Browse files

test: check writeReport when error with one line stack

PR-URL: #28433
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
Himself65 authored and targos committed Jun 26, 2019
1 parent 48c369b commit 793163e353efe0601e358ca0f3c3046e72eced56
Showing with 8 additions and 0 deletions.
  1. +8 −0 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');

0 comments on commit 793163e

Please sign in to comment.
You can’t perform that action at this time.