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

This commit is contained in:
Dmitry Lemeshko 2019-08-27 17:28:02 +02:00 committed by GitHub
parent 588a44ed04
commit 89d97368c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,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('');
}