Skip to content

Commit

Permalink
Add missing callback on test complete
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Mar 31, 2017
1 parent 5cf0707 commit 5158abc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export function run(testsRoot:string, callback: (error:Error, failures?:number)
bootstrap.callback(() => {
if (failures > 0) {
callback(new Error(failures + ' test(s) failed'), failures);
} else {
callback(null);
}
});
});
Expand Down

0 comments on commit 5158abc

Please sign in to comment.