UNPKG

531 BJavaScriptView Raw
1/**
2 * Helper functions.
3 * @module apeman-dev-commons-testing/lib/_helper
4 * @private
5 */
6
7"use strict";
8
9var colorprint = require('colorprint');
10
11/** @lends module:apeman-dev-commons-testing/lib/_helper */
12var h = {};
13
14h.start = function () {
15 colorprint.notice('Testing started...');
16};
17
18h.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
29module.exports = h;
\No newline at end of file