mirror of
https://github.com/thelounge/thelounge
synced 2024-11-24 21:13:06 +00:00
tests/server: Tear down test fixtures in the order they were setup
if for whatever reason before() fails to import the server, it causes after() to fail on the first line, so it doesn't restore stubs; causing other errors to be printed in other tests ("TypeError: Attempted to wrap warn which is already wrapped")
This commit is contained in:
parent
eb509f7100
commit
0dd74a93bf
1 changed files with 1 additions and 1 deletions
|
@ -39,10 +39,10 @@ describe("Server", function () {
|
|||
});
|
||||
|
||||
after(function (done) {
|
||||
server.close(done);
|
||||
logInfoStub.restore();
|
||||
logWarnStub.restore();
|
||||
checkForUpdatesStub.restore();
|
||||
server.close(done);
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
|
|
Loading…
Reference in a new issue