Skip to content

Commit ef2dc18

Browse files
committed
pdev:set
1 parent bba92a0 commit ef2dc18

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

dist/suman.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,7 @@ exports.constants = Object.freeze({
21302130
SUCCESSFUL_RUN: 0,
21312131
WHOLE_TEST_SUITE_SKIPPED: 0,
21322132
GREP_SUITE_DID_NOT_MATCH: 0,
2133+
COULD_NOT_LOAD_A_REPORTER: 48,
21332134
FILE_OR_DIRECTORY_DOES_NOT_EXIST: 49,
21342135
SUMAN_PRE_NOT_FOUND_IN_YOUR_PROJECT: 50,
21352136
SUMAN_HELPER_FILE_DOES_NOT_EXPORT_EXPECTED_FUNCTION: 51,
@@ -32072,11 +32073,11 @@ var chalk = __webpack_require__(83);
3207232073
exports.getLogger = function (reporterName) {
3207332074
reporterName = reporterName || 'browser-reporting';
3207432075
return {
32075-
info: console.log.bind(console, " [suman-" + reporterName + "] "),
32076-
warning: console.error.bind(console, chalk.yellow(" [suman-" + reporterName + "] ")),
32077-
error: console.error.bind(console, chalk.red(" [suman-" + reporterName + "] ")),
32078-
good: console.error.bind(console, chalk.cyan(" [suman-" + reporterName + "] ")),
32079-
veryGood: console.log.bind(console, chalk.green(" [suman-" + reporterName + "] "))
32076+
info: console.log.bind(console, " [suman @" + reporterName + "] "),
32077+
warning: console.error.bind(console, chalk.yellow(" [suman @" + reporterName + "] ")),
32078+
error: console.error.bind(console, chalk.red(" [suman @" + reporterName + "] ")),
32079+
good: console.error.bind(console, chalk.cyan(" [suman @" + reporterName + "] ")),
32080+
veryGood: console.log.bind(console, chalk.green(" [suman @" + reporterName + "] "))
3208032081
};
3208132082
};
3208232083

@@ -52002,8 +52003,8 @@ module.exports = {
5200252003
},
5200352004

5200452005
watch: {
52005-
options:{
52006-
// incomplete
52006+
options: {
52007+
// incomplete
5200752008
},
5200852009
per: {
5200952010
'zoom': {
@@ -52035,8 +52036,10 @@ module.exports = {
5203552036
},
5203652037

5203752038
reporters: {
52038-
// usage: $ suman --reporters tap
52039-
'tap': 'suman-reporters/modules/tap-reporter' // the value is simply passed to require()
52039+
// usage: $ suman --reporter=tap
52040+
map: {
52041+
'tap': 'suman-reporters/modules/tap-reporter' // the value is simply passed to require()
52042+
}
5204052043
},
5204152044

5204252045
servers: { // list of servers to output test result data to, with the os.hostname() as the key
@@ -66240,7 +66243,7 @@ exports.makeDescribe = function (suman, gracefulExit, TestBlock, notifyParentTha
6624066243
var isAsync = su.isAsyncFn(cb);
6624166244
if (isGenerator || isAsync) {
6624266245
var msg = suman_constants_1.constants.ERROR_MESSAGES.INVALID_FUNCTION_TYPE_USAGE;
66243-
console.log('\n\n' + msg + '\n\n');
66246+
console.log('\n' + msg + '\n');
6624466247
console.error(new Error(' => Suman usage error => invalid arrow/generator function usage.').stack);
6624566248
process.exit(suman_constants_1.constants.EXIT_CODES.INVALID_ARROW_FUNCTION_USAGE);
6624666249
return;
@@ -68086,7 +68089,7 @@ exports.default = function (s, opts) {
6808668089
return;
6808768090
}
6808868091
if (_suman.inceptionLevel < 1) {
68089-
log.error("\"" + reporterName + "\" warning: suman inception level is 0, we may not need to load this reporter.");
68092+
log.warning("\"" + reporterName + "\" warning: suman inception level is 0, we may not need to load this reporter.");
6809068093
}
6809168094
log.info("loading " + reporterName + ".");
6809268095
loaded = true;

0 commit comments

Comments
 (0)