Skip to content

Commit

Permalink
change print order assertion with error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sungho Kim committed Jun 29, 2015
1 parent 64b5f2e commit 0106cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ var NarrowReporter = function(baseReporterDecorator, formatError) {
stacktraces += ' at ' + stline;
});

self.write((parsedLog.assertion).white);

if (parsedLog.errorMsg) {
self.write((JSON.stringify(parsedLog.errorMsg.replace(/\n$/g, '')).replace(/\"/g, '') + '\n').white);
}

self.write((parsedLog.assertion).white);
self.write(stacktraces.grey);
});
}
Expand Down

0 comments on commit 0106cf0

Please sign in to comment.