Skip to content

Commit c0c8b46

Browse files
committed
Only log duration with simple reporter
1 parent fef6976 commit c0c8b46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/run.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,17 @@ var results = _(function(push) {
5656
push(null, _.nil);
5757
}).merge();
5858

59-
results.on('end', function() {
60-
console.log("Took " + ((Date.now() - start) / 1000) + " seconds");
61-
})
6259

6360
if(t262.config.reporter === 'json') {
6461
results.pipe(jss).pipe(process.stdout);
6562
} else if(t262.config.reporter === 'tap') {
6663
results.pipe(tapify).pipe(process.stdout);
6764
} else if(t262.config.reporter === 'simple') {
6865
results.pipe(simpleReporter);
66+
67+
results.on('end', function() {
68+
console.log("Took " + ((Date.now() - start) / 1000) + " seconds");
69+
})
6970
}
7071

7172
// takes a test collateral stream.

0 commit comments

Comments
 (0)