fix logging 'undefined' on tests completion (#43983)
This commit is contained in:
parent
007fa0a4a0
commit
d859b79a98
|
@ -121,7 +121,7 @@ export function MochaReporterProvider({ getService }) {
|
||||||
|
|
||||||
onSuiteEnd = () => {
|
onSuiteEnd = () => {
|
||||||
if (log.indent(-2) === 0) {
|
if (log.indent(-2) === 0) {
|
||||||
log.write();
|
log.write('');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ import { ms } from './ms';
|
||||||
|
|
||||||
export function writeEpilogue(log, stats) {
|
export function writeEpilogue(log, stats) {
|
||||||
// header
|
// header
|
||||||
log.write();
|
log.write('');
|
||||||
|
|
||||||
// passes
|
// passes
|
||||||
log.write(`${colors.pass('%d passing')} (%s)`, stats.passes || 0, ms(stats.duration));
|
log.write(`${colors.pass('%d passing')} (%s)`, stats.passes || 0, ms(stats.duration));
|
||||||
|
@ -38,5 +38,5 @@ export function writeEpilogue(log, stats) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// footer
|
// footer
|
||||||
log.write();
|
log.write('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue