diff options
Diffstat (limited to 'actioncable/test/javascript/src/unit/action_cable_test.js')
-rw-r--r-- | actioncable/test/javascript/src/unit/action_cable_test.js | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/actioncable/test/javascript/src/unit/action_cable_test.js b/actioncable/test/javascript/src/unit/action_cable_test.js index 8847d87545..daad900aca 100644 --- a/actioncable/test/javascript/src/unit/action_cable_test.js +++ b/actioncable/test/javascript/src/unit/action_cable_test.js @@ -1,4 +1,4 @@ -import ActionCable from "../../../../app/javascript/action_cable/index" +import * as ActionCable from "../../../../app/javascript/action_cable/index" import {testURL} from "../test_helpers/index" const {module, test} = QUnit @@ -7,23 +7,13 @@ module("ActionCable", () => { module("Adapters", () => { module("WebSocket", () => { test("default is window.WebSocket", assert => { - assert.equal(ActionCable.WebSocket, window.WebSocket) - }) - - test("configurable", assert => { - ActionCable.WebSocket = "" - assert.equal(ActionCable.WebSocket, "") + assert.equal(ActionCable.adapters.WebSocket, window.WebSocket) }) }) module("logger", () => { test("default is window.console", assert => { - assert.equal(ActionCable.logger, window.console) - }) - - test("configurable", assert => { - ActionCable.logger = "" - assert.equal(ActionCable.logger, "") + assert.equal(ActionCable.adapters.logger, window.console) }) }) }) |