You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/06/28 08:45:24 UTC

[18/30] incubator-weex git commit: * [html5] fix lint error in webSocket test code

 * [html5] fix lint error in webSocket test code


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/96cf5de6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/96cf5de6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/96cf5de6

Branch: refs/heads/dev
Commit: 96cf5de6399ed8ad741e5d8eeac06feee0c3430e
Parents: e6b55f7
Author: erha19 <fa...@gmail.com>
Authored: Sat Jun 24 21:20:19 2017 +0800
Committer: erha19 <fa...@gmail.com>
Committed: Sat Jun 24 21:20:19 2017 +0800

----------------------------------------------------------------------
 html5/test/render/vue/modules/websocket.js | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/96cf5de6/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 28b5958..f3534ef 100644
--- a/html5/test/render/vue/modules/websocket.js
+++ b/html5/test/render/vue/modules/websocket.js
@@ -1,11 +1,11 @@
-import websocket from '../../../../render/vue/modules/websocket/websocket';
-describe('webSocket module', function() {
-  afterEach(function(done) {
+import websocket from '../../../../render/vue/modules/websocket/websocket'
+describe('webSocket module', function () {
+  afterEach(function (done) {
     // Cleanup
-    websocket.close();
-    done();
-  });
+    websocket.close()
+    done()
+  })
   it('should have connection lifecycle constants defined on the instance', () => {
-    expect(websocket.WebSocket('wss://echo.websocket.org').CONNECTING).to.be.equal(0);
-  });
-});
+    expect(websocket.WebSocket('wss://echo.websocket.org').CONNECTING).to.be.equal(0)
+  })
+})