Skip to content

Commit 24bf82c

Browse files
committed
fix
1 parent 6d93e74 commit 24bf82c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js-tests/Connector.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ describe('Connector', () => {
66
let server: WS;
77

88
beforeEach(() => {
9-
if (server) {
10-
server.close()
11-
}
12-
139
server = new WS("ws://localhost:1234");
1410
});
1511

12+
afterEach(() => {
13+
server.close()
14+
});
15+
1616
test('socket id is correctly set', async () => {
1717
const connector = new Connector({
1818
host: "ws://localhost:1234",

0 commit comments

Comments
 (0)