Skip to content

Commit

Permalink
Update dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Dorner committed Feb 1, 2021
1 parent 855ff9b commit 2834fd0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
30 changes: 20 additions & 10 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/parsers/dart-json/dart-json-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ export class DartJsonParser implements TestParser {
tests[evt.testID].error = evt
} else if (isMessageEvent(evt)) {
tests[evt.testID].print.push(evt)
}
else if (isDoneEvent(evt)) {
} else if (isDoneEvent(evt)) {
success = evt.success
totalTime = evt.time
}
Expand Down Expand Up @@ -158,7 +157,10 @@ export class DartJsonParser implements TestParser {
const {trackedFiles} = this.options
const message = test.error?.error ?? ''
const stackTrace = test.error?.stackTrace ?? ''
const print = test.print.filter(p => p.messageType === 'print').map(p => p.message).join('\n')
const print = test.print
.filter(p => p.messageType === 'print')
.map(p => p.message)
.join('\n')
const details = [print, stackTrace].filter(str => str !== '').join('\n')
const src = this.exceptionThrowSource(stackTrace, trackedFiles)
let path
Expand Down

0 comments on commit 2834fd0

Please sign in to comment.