Skip to content

Commit

Permalink
fix(report): do not relativize paths if outdir was not set
Browse files Browse the repository at this point in the history
This would never be a bug for the user but related tests were failing due to previous commit.
  • Loading branch information
marisademeglio committed Dec 24, 2017
1 parent c7bfe03 commit 57b05d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ace-report/src/report-builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57b05d9

Please sign in to comment.