mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Proxy unit tests (#40)
* add unit test for proxy * more unit tests for proxy
This commit is contained in:
@@ -50,10 +50,6 @@ class Notify {
|
||||
this.destroy();
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.emitter.removeAllListeners();
|
||||
}
|
||||
|
||||
static get permission() {
|
||||
return 'granted';
|
||||
}
|
||||
@@ -73,6 +69,13 @@ class Notify {
|
||||
//
|
||||
// private stuff below here
|
||||
//
|
||||
|
||||
destroy() {
|
||||
this.emitter.removeAllListeners();
|
||||
// allow live instance to be destroyed
|
||||
this.emitter.emit('destroy');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Notify;
|
||||
|
||||
Reference in New Issue
Block a user