Skip to content

Commit 5e998f9

Browse files
committed
chore: add afterEach
Signed-off-by: nikolay <[email protected]>
1 parent 6e73a2f commit 5e998f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ws-server/tests/unit/index.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { ConfigService } from '../../../config-service/dist/services';
66
import * as webSocketServer from '../../dist/webSocketServer';
77

88
describe('main', () => {
9+
afterEach(() => {
10+
sinon.restore();
11+
});
12+
913
it('should start server if ensureOperatorHasBalance succeeds', async () => {
1014
const appListenStub = sinon.stub(webSocketServer.app, 'listen');
1115
const configGetStub = sinon.stub(ConfigService, 'get').returns('127.0.0.1');

0 commit comments

Comments
 (0)