function display(runner) {
  var stats = runner.stats;
  var symbol = {
    cross: '\u274C',
    tick: '\u2705'
  };
  var logo = require('../../package').notifyLogo;
  var _message;
  var message;
  var title;

  if (stats.failures) {
    _message = stats.failures + ' of ' + stats.tests + ' tests failed';
    message = symbol.cross + ' ' + _message;
    title = 'Failed';
  } else {
    _message = stats.passes + ' tests passed in ' + stats.duration + 'ms';
    message = symbol.tick + ' ' + _message;
    title = 'Passed';
  }

  // Send notification
  var options = {
    badge: logo,
    body: message,
    dir: 'ltr',
    icon: logo,
    lang: 'en-US',
    name: 'mocha',
    requireInteraction: false,
    timestamp: Date.now()
  };
  var notification = new Notification(title, options);

  // Autoclose after brief delay (makes various browsers act same)
  var FORCE_DURATION = 4000;
  setTimeout(notification.close.bind(notification), FORCE_DURATION);
}
function display(runner) {
  var stats = runner.stats;
  var symbol = {
    cross: '\u274C',
    tick: '\u2705'
  };
  var logo = require('../../package').notifyLogo;
  var _message;
  var message;
  var title;

  if (stats.failures) {
    _message = stats.failures + ' of ' + stats.tests + ' tests failed';
    message = symbol.cross + ' ' + _message;
    title = 'Failed';
  } else {
    _message = stats.passes + ' tests passed in ' + stats.duration + 'ms';
    message = symbol.tick + ' ' + _message;
    title = 'Passed';
  }

  // Send notification
  var options = {
    badge: logo,
    body: message,
    dir: 'ltr',
    icon: logo,
    lang: 'en-US',
    name: 'mocha',
    requireInteraction: false,
    timestamp: Date.now()
  };
  var notification = new Notification(title, options);

  // Autoclose after brief delay (makes various browsers act same)
  var FORCE_DURATION = 4000;
  setTimeout(notification.close.bind(notification), FORCE_DURATION);
}
function display ( runner ) { var stats = runner . stats ; var symbol = { cross : '\u274C' , tick : '\u2705' } ; var logo = require ( '../../package' ) . notifyLogo ; var _message ; var message ; var title ; if ( stats . failures ) { _message = stats . failures + ' of ' + stats . tests + ' tests failed' ; message = symbol . cross + ' ' + _message ; title = 'Failed' ; } else { _message = stats . passes + ' tests passed in ' + stats . duration + 'ms' ; message = symbol . tick + ' ' + _message ; title = 'Passed' ; } // Send notification var options = { badge : logo , body : message , dir : 'ltr' , icon : logo , lang : 'en-US' , name : 'mocha' , requireInteraction : false , timestamp : Date . now ( ) } ; var notification = new Notification ( title , options ) ; // Autoclose after brief delay (makes various browsers act same) var FORCE_DURATION = 4000 ; setTimeout ( notification . close . bind ( notification ) , FORCE_DURATION ) ; }
Displays the notification.

@private
@param {Runner} runner - Runner instance.
Displays the notification .
Display the test results