Proxy unit tests (#40)

* add unit test for proxy

* more unit tests for proxy
This commit is contained in:
Lynn
2017-03-23 16:19:59 -07:00
committed by GitHub
parent 2b0537945b
commit 2ded38c542
7 changed files with 571 additions and 23 deletions

View File

@@ -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;