mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
Tests: only stop if running (in case of error when launching app)
This commit is contained in:
@ -33,7 +33,9 @@ class TestEnvironment extends NodeEnvironment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async teardown() {
|
async teardown() {
|
||||||
await this.global.__APP__.stop();
|
if (this.global.__APP__.isRunning()) {
|
||||||
|
await this.global.__APP__.stop();
|
||||||
|
}
|
||||||
await super.teardown();
|
await super.teardown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user