Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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));
}
return new Promise( ( resolve, reject ) => {
growly.register( displayName, "", [{ label: displayName }], err => {
if ( err ) {
reject( err );
} else {
resolve();
}
});
});
}
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));
}