You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Tests: Integration harness fixes and refactors. (#2569)
* Test harness fixes and integration test refactor and addition. * Clean up. * Address review comments. * Improve method names.
This commit is contained in:
@ -55,11 +55,20 @@ class BaseApplication {
|
||||
}
|
||||
|
||||
async destroy() {
|
||||
if (this.scheduleAutoAddResourcesIID_) {
|
||||
clearTimeout(this.scheduleAutoAddResourcesIID_);
|
||||
this.scheduleAutoAddResourcesIID_ = null;
|
||||
}
|
||||
await ResourceFetcher.instance().destroy();
|
||||
await SearchEngine.instance().destroy();
|
||||
await DecryptionWorker.instance().destroy();
|
||||
await FoldersScreenUtils.cancelTimers();
|
||||
await SearchEngine.instance().cancelTimers();
|
||||
await DecryptionWorker.instance().cancelTimers();
|
||||
await reg.cancelTimers();
|
||||
|
||||
this.eventEmitter_.removeAllListeners();
|
||||
BaseModel.db_ = null;
|
||||
reg.setDb(null);
|
||||
|
||||
this.logger_ = null;
|
||||
this.dbLogger_ = null;
|
||||
this.eventEmitter_ = null;
|
||||
|
Reference in New Issue
Block a user