From 57b05d9a3c8977d9150f209bdfa9a59388918c22 Mon Sep 17 00:00:00 2001 From: Marisa DeMeglio Date: Sat, 23 Dec 2017 22:20:36 -0800 Subject: [PATCH] fix(report): do not relativize paths if outdir was not set This would never be a bug for the user but related tests were failing due to previous commit. --- packages/ace-report/src/report-builders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ace-report/src/report-builders.js b/packages/ace-report/src/report-builders.js index cffb24bc..b9586ffc 100644 --- a/packages/ace-report/src/report-builders.js +++ b/packages/ace-report/src/report-builders.js @@ -161,7 +161,7 @@ class ReportBuilder { } withTestSubject(url, title, identifier, metadata, links) { var url_ = url; - if (this.outdir != "" && reportConfig["use-relative-paths"]) { + if (this.outdir !== undefined && this.outdir != "" && reportConfig["use-relative-paths"]) { url_ = path.relative(this.outdir, url); } withTestSubject(this._json, url_, title, identifier, metadata, links);