[Groonga-commit] droonga/express-droonga at ba1dff1 [master] Define testing command with its expected notification type

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 6 11:46:39 JST 2014


YUKI Hiroshi	2014-01-06 11:46:39 +0900 (Mon, 06 Jan 2014)

  New Revision: ba1dff140b8cac01d84f84f4ada52c084901d772
  https://github.com/droonga/express-droonga/commit/ba1dff140b8cac01d84f84f4ada52c084901d772

  Message:
    Define testing command with its expected notification type

  Modified files:
    test/adapter/socket.io.test.js

  Modified: test/adapter/socket.io.test.js (+5 -1)
===================================================================
--- test/adapter/socket.io.test.js    2014-01-06 11:46:21 +0900 (95f0fe9)
+++ test/adapter/socket.io.test.js    2014-01-06 11:46:39 +0900 (ae91126)
@@ -34,7 +34,9 @@ suite('Socket.IO Adapter', function() {
         socket.emit('reqrep-mod-body.response', 'modified response');
       }
     }),
-    'pubsub': new command.SocketPublishSubscribe(),
+    'pubsub': new command.SocketPublishSubscribe({
+      notification: 'pubsub.notification'
+    }),
     'pubsub-mod-event': new command.SocketPublishSubscribe({
       onSubscribe: function(data, connection) {
         connection.emit('pubsub-mod-event.mod.subscribe', data);
@@ -48,6 +50,7 @@ suite('Socket.IO Adapter', function() {
       onUnsubscribed: function(data, socket) {
         socket.emit('pubsub-mod-event.mod.unsubscribe.response', data);
       },
+      notification: 'pubsub-mod-event.notification',
       onNotify: function(data, socket) {
         socket.emit('pubsub-mod-event.mod.notification', data);
       }
@@ -65,6 +68,7 @@ suite('Socket.IO Adapter', function() {
       onUnsubscribed: function(data, socket) {
         socket.emit('pubsub-mod-body.unsubscribe.response', 'modified response');
       },
+      notification: 'pubsub-mod-body.notification',
       onNotify: function(data, socket) {
         socket.emit('pubsub-mod-body.notification', 'modified response');
       }
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index