Skip to content

Commit

Permalink
Remove event listeners between RemoteWatcher tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebn committed May 5, 2017
1 parent f2838b8 commit 735ef85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit/remote/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ describe('RemoteWatcher', function () {
this.events = new EventEmitter()
this.watcher = new RemoteWatcher(this.pouch, this.prep, this.remoteCozy, this.events)
})
afterEach(function removeEventListeners () {
this.events.removeAllListeners()
})
after(pouchHelpers.cleanDatabase)
after(configHelpers.cleanConfig)

Expand Down

0 comments on commit 735ef85

Please sign in to comment.