From 66901c1849efae74c8a58fe0cb36afd487c067cc Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Fri, 27 May 2016 13:07:13 -0400 Subject: Add configuration for `WebSocket` and `logger` [Javan Makhmali, Jon Moss] --- actioncable/test/javascript/src/test_helpers/mock_websocket.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'actioncable/test/javascript/src/test_helpers') diff --git a/actioncable/test/javascript/src/test_helpers/mock_websocket.coffee b/actioncable/test/javascript/src/test_helpers/mock_websocket.coffee index b7f86f18f6..6508984c37 100644 --- a/actioncable/test/javascript/src/test_helpers/mock_websocket.coffee +++ b/actioncable/test/javascript/src/test_helpers/mock_websocket.coffee @@ -1,12 +1,10 @@ #= require mock-socket -NativeWebSocket = window.WebSocket - server = null consumer = null ActionCable.TestHelpers.createConsumer = (url, callback) -> - window.WebSocket = MockWebSocket + ActionCable.WebSocket = MockWebSocket server = new MockServer url consumer = ActionCable.createConsumer(url) callback(consumer, server) @@ -18,4 +16,3 @@ QUnit.testDone -> if server? server.clients().forEach (client) -> client.close() server.close() - window.WebSocket = NativeWebSocket -- cgit v1.2.3