fix(console): shorten log output
This commit is contained in:
@ -8,4 +8,7 @@ import * as smartlog from '@pushrocks/smartlog';
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
import * as smartshell from '@pushrocks/smartshell';
|
||||
|
||||
export { consolecolor, path, smartfile, smartlog, smartpromise, smartshell };
|
||||
// sindresorhus
|
||||
import * as figures from 'figures';
|
||||
|
||||
export { consolecolor, figures, path, smartfile, smartlog, smartpromise, smartshell };
|
||||
|
@ -64,14 +64,14 @@ export class TapParser {
|
||||
if (testOk) {
|
||||
console.log(
|
||||
logPrefixes.TapPrefix,
|
||||
` ${cs(`Test ${testId} -> Success!`, 'green')} | ` +
|
||||
` ${cs(`T${testId} ${plugins.figures.tick}`, 'green')} | ` +
|
||||
cs(testSubject, 'blue') +
|
||||
` | ${cs(`${testDuration} milliseconds`, 'orange')}`
|
||||
);
|
||||
} else {
|
||||
console.log(
|
||||
logPrefixes.TapPrefix,
|
||||
` ${cs(`Test ${testId} -> Error!`, 'red')} | ` +
|
||||
` ${cs(`T${testId} ${plugins.figures.cross}`, 'red')} | ` +
|
||||
cs(testSubject, 'blue') +
|
||||
` | ${cs(`${testDuration} milliseconds`, 'orange')}`
|
||||
);
|
||||
|
Reference in New Issue
Block a user