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:
Max Leiter 2023-03-20 13:54:06 -07:00 committed by GitHub
commit 4babd17383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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