You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/07/20 08:29:54 UTC

[24/50] incubator-weex git commit: - [html5] remove useless test

- [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 <fa...@gmail.com>
Authored: Thu Jul 13 15:16:14 2017 +0800
Committer: erha19 <fa...@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
-      })
     })
   })
 })