- [html5] remove useless test
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ab67cf8e Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ab67cf8e Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ab67cf8e Branch: refs/heads/0.15-dev Commit: ab67cf8e49649ff90605fa7fbc220f4bcd7db900 Parents: 8bc53ca Author: erha19 <faterr...@gmail.com> Authored: Thu Jul 13 15:16:14 2017 +0800 Committer: erha19 <faterr...@gmail.com> Committed: Thu Jul 13 15:16:14 2017 +0800 ---------------------------------------------------------------------- html5/test/render/vue/modules/websocket.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ab67cf8e/html5/test/render/vue/modules/websocket.js ---------------------------------------------------------------------- diff --git a/html5/test/render/vue/modules/websocket.js b/html5/test/render/vue/modules/websocket.js index 05a2fca..257bb56 100644 --- a/html5/test/render/vue/modules/websocket.js +++ b/html5/test/render/vue/modules/websocket.js @@ -50,7 +50,7 @@ describe('webSocket module', function () { context('should forward native events', function () { let ws = null before(() => { - ws = websocket.WebSocket(TestUrl, '') + ws = websocket.WebSocket(TestUrl, 'ws') }) after(() => { websocket.close() @@ -81,10 +81,6 @@ describe('webSocket module', function () { websocket.WebSocket('') expect(websocket.INSTANCE).to.be.null }) - it('both url and protocol is defined', (done) => { - websocket.WebSocket(TestUrl, 'ws') - expect(websocket.INSTANCE).not.to.be.null - }) }) }) })