diff --git a/tests/functional/close-algorithm.test.js b/tests/functional/close-algorithm.test.js index faa28868..2f840b46 100644 --- a/tests/functional/close-algorithm.test.js +++ b/tests/functional/close-algorithm.test.js @@ -4,7 +4,7 @@ import WebSocket from '../../src/websocket'; import networkBridge from '../../src/network-bridge'; import delay from '../../src/helpers/delay'; -test.afterEach(() => { +test.beforeEach(() => { networkBridge.urlMap = {}; }); diff --git a/tests/functional/websockets.test.js b/tests/functional/websockets.test.js index 7d7cd79e..29012d30 100644 --- a/tests/functional/websockets.test.js +++ b/tests/functional/websockets.test.js @@ -3,7 +3,7 @@ import Server from '../../src/server'; import WebSocket from '../../src/websocket'; import networkBridge from '../../src/network-bridge'; -test.afterEach(() => { +test.beforeEach(() => { networkBridge.urlMap = {}; }); diff --git a/tests/unit/network-bridge.test.js b/tests/unit/network-bridge.test.js index 0c91aa06..51e18c08 100644 --- a/tests/unit/network-bridge.test.js +++ b/tests/unit/network-bridge.test.js @@ -4,7 +4,7 @@ import networkBridge from '../../src/network-bridge'; const fakeObject = { foo: 'bar' }; -test.afterEach(() => { +test.beforeEach(() => { networkBridge.urlMap = {}; });