Skip to content

Commit

Permalink
Add reportFinish test
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuke-furukawa committed Jun 22, 2016
1 parent a2eb148 commit 387bf6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/core/lib/reporter/Reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ const child = {
},
};
reporter.setChildProc(child);

console.log = (message) => {
assert(message.indexOf('Total duration time:') !== -1);
};
reporter.reportFinish(false, []);

0 comments on commit 387bf6d

Please sign in to comment.