Skip to content

Commit 9203ddd

Browse files
Update src/__tests__/controller.test.js
Co-authored-by: codiumai-pr-agent-free[bot] <138128286+codiumai-pr-agent-free[bot]@users.noreply.github.com>
1 parent b662d91 commit 9203ddd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/__tests__/controller.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ describe('Controller', () => {
1616
};
1717
});
1818

19+
afterEach(() => {
20+
jest.clearAllMocks();
21+
socketMock = null;
22+
ioMock = null;
23+
});
24+
1925
it('should throw an error if io is not provided', () => {
2026
expect(() => new Controller()).toThrow('Expected the socket.io-client module, but got: undefined');
2127
});

0 commit comments

Comments
 (0)