mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-10-01 17:11:37 +00:00
bump jest and make tests pass
This commit is contained in:
1 parent
d28dc26fa3
commit
4f58d166b7
5769 files changed
+856618
-394571
No files matched your search
+10
-3
@@ -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() {}
|
||||
Reference in new issue
Block a user