Skip to content

Commit

Permalink
Preserve new lines when test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
piuccio committed Jan 7, 2014
1 parent 059b0bf commit 49a5da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/testem.js
Expand Up @@ -45,7 +45,7 @@ module.exports = function(grunt) {
var matches={};
data = ''+data;
matches.path = data.match(/^# Executing (.+)$/);
matches.fail = data.match(/^not ok (.+)/);
matches.fail = data.match(/^not ok ([\s\S]+)/);
if(matches.path){
grunt.log.writeln(matches.path[0]);
}
Expand Down

0 comments on commit 49a5da4

Please sign in to comment.