1 | /**
|
2 | * Helper functions.
|
3 | * @module apeman-dev-commons-testing/lib/_helper
|
4 | * @private
|
5 | */
|
6 |
|
7 | ;
|
8 |
|
9 | var colorprint = require('colorprint');
|
10 |
|
11 | /** @lends module:apeman-dev-commons-testing/lib/_helper */
|
12 | var h = {};
|
13 |
|
14 | h.start = function () {
|
15 | colorprint.notice('Testing started...');
|
16 | };
|
17 |
|
18 | h.end = function (err) {
|
19 | if (err) {
|
20 | console.error(err);
|
21 | process.nextTick(function () {
|
22 | process.exit(1);
|
23 | });
|
24 | } else {
|
25 | colorprint.notice('...testing done!');
|
26 | }
|
27 | };
|
28 |
|
29 | module.exports = h; |
\ | No newline at end of file |