Skip to content

Commit c6ecb71

Browse files
authored
Restore nock (#332)
1 parent ba7c42b commit c6ecb71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

__tests__/unhappy.brokenWebSocket.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ describe('Unhappy path', () => {
8585
defineEventAttribute(window.WebSocket.prototype, 'error');
8686
});
8787

88+
afterEach(() => {
89+
nock.cleanAll();
90+
});
91+
8892
test('should reconnect only once for every error', async () => {
8993
const directLine = new DirectLine({
9094
token: '123',

0 commit comments

Comments
 (0)