fix logging 'undefined' on tests completion (#43983)

This commit is contained in:
Dmitry Lemeshko 2019-08-26 19:44:43 +02:00 committed by GitHub
parent 007fa0a4a0
commit d859b79a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ export function MochaReporterProvider({ getService }) {
onSuiteEnd = () => {
if (log.indent(-2) === 0) {
log.write();
log.write('');
}
};

View file

@ -22,7 +22,7 @@ import { ms } from './ms';
export function writeEpilogue(log, stats) {
// header
log.write();
log.write('');
// passes
log.write(`${colors.pass('%d passing')} (%s)`, stats.passes || 0, ms(stats.duration));
@ -38,5 +38,5 @@ export function writeEpilogue(log, stats) {
}
// footer
log.write();
log.write('');
}