Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterEach(() => {
return mock.cleanup(test.spy).then(() => {
test.spy = undefined;
Connection.disableConnectionAccounting();
});
});
afterEach(() => {
return mock.cleanup(test.spy).then(() => {
test.spy = undefined;
Connection.disableConnectionAccounting();
});
});
afterEach(() => {
return mock.cleanup(test.spy).then(() => {
test.spy = undefined;
Connection.disableConnectionAccounting();
});
});
afterEach(() => {
return mock.cleanup(test.spy).then(() => {
test.spy = undefined;
Connection.disableConnectionAccounting();
});
});
afterEach(() => {
return mock.cleanup(test.spy).then(() => {
test.spy = undefined;
Connection.disableConnectionAccounting();
});
});
function stopServer() {
Connection.disableConnectionAccounting();
return mock.cleanup();
}