mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 14:44:13 +00:00
Merge pull request #4715 from progval/test-server-teardown
tests/server: Tear down test fixtures in the order they were setup
This commit is contained in:
commit
4babd17383
1 changed files with 3 additions and 1 deletions
|
@ -39,10 +39,12 @@ describe("Server", function () {
|
|||
});
|
||||
|
||||
after(function (done) {
|
||||
server.close(done);
|
||||
// Tear down test fixtures in the order they were setup,
|
||||
// in case setup crashed for any reason
|
||||
logInfoStub.restore();
|
||||
logWarnStub.restore();
|
||||
checkForUpdatesStub.restore();
|
||||
server.close(done);
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
|
|
Loading…
Reference in a new issue