bump jest and make tests pass

This commit is contained in:
Louis Hache committed 2020-11-13 19:11:55 +01:00
1 parent d28dc26fa3
commit 4f58d166b7
5769 files changed
+856618 -394571

No files matched your search

+10 -3
View File
@@ -13,7 +13,7 @@ var errorMessageNotFound =
module.exports = Growl;
var hasGrowl = void 0;
var hasGrowl;
function Growl(options) {
options = utils.clone(options || {});
@@ -28,7 +28,7 @@ function Growl(options) {
}
util.inherits(Growl, EventEmitter);
Growl.prototype.notify = function(options, callback) {
function notifyRaw(options, callback) {
growly.setHost(this.options.host, this.options.port);
options = utils.clone(options || {});
@@ -71,6 +71,13 @@ Growl.prototype.notify = function(options, callback) {
callback();
});
return this;
};
}
Object.defineProperty(Growl.prototype, 'notify', {
get: function() {
if (!this._notify) this._notify = notifyRaw.bind(this);
return this._notify;
}
});
function noop() {}