How to use the growly.register function in growly

To help you get started, we’ve selected a few growly examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Bahmni / openmrs-module-bahmniapps / clinical-ui / node_modules / testacular / lib / reporters / Growl.js View on Github external
var GrowlReporter = function() {
  growly.register('Testacular', '', [], function(error) {
    var warning = 'No running verion of GNTP found.\n' +
                  'For more information see https://github.com/theabraham/growly.';
    if (error) {
      log.warn(warning);
    }
  });

  this.adapters = [];

  this.onBrowserComplete = function(browser) {
    var results = browser.lastResult;
    var time = helper.formatTimeInterval(results.totalTime);

    if (results.disconnected || results.error) {
      return growly.notify(MSG_ERROR, optionsFor('error', browser.name));
    }
github streamlink / streamlink-twitch-gui / src / app / services / notification / providers / growl.js View on Github external
return new Promise( ( resolve, reject ) => {
			growly.register( displayName, "", [{ label: displayName }], err => {
				if ( err ) {
					reject( err );
				} else {
					resolve();
				}
			});
		});
	}
github karma-runner / karma / lib / reporters / Growl.js View on Github external
var GrowlReporter = function() {
  growly.register('Testacular', '', [], function(error) {
    var warning = 'No running verion of GNTP found.\n' +
                  'For more information see https://github.com/theabraham/growly.';
    if (error) {
      log.warn(warning);
    }
  });

  this.adapters = [];

  this.onBrowserComplete = function(browser) {
    var results = browser.lastResult;
    var time = helper.formatTimeInterval(results.totalTime);

    if (results.disconnected || results.error) {
      return growly.notify(MSG_ERROR, optionsFor('error', browser.name));
    }

growly

Simple zero-dependency Growl notifications using GNTP.

MIT
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis