[Groonga-commit] groonga/express-kotoumi [master] test: Fold long lines

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jan 29 15:49:38 JST 2013


YUKI Hiroshi	2013-01-29 15:49:38 +0900 (Tue, 29 Jan 2013)

  New Revision: e51e5e376a15c9b2de30dd5d3e3704c4f45eae6b
  https://github.com/groonga/express-kotoumi/commit/e51e5e376a15c9b2de30dd5d3e3704c4f45eae6b

  Log:
    test: Fold long lines

  Modified files:
    test/backend-connection.test.js

  Modified: test/backend-connection.test.js (+40 -21)
===================================================================
--- test/backend-connection.test.js    2013-01-29 15:47:02 +0900 (6f247a4)
+++ test/backend-connection.test.js    2013-01-29 15:49:38 +0900 (fdc5517)
@@ -119,7 +119,8 @@ suite('Connection, basic features', function() {
       .next(function() {
         message = connection.emitMessage('testRequest', { command: 'foobar' });
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.01)
       .next(function() {
@@ -194,16 +195,21 @@ suite('Connection, basic features', function() {
     Deferred
       .wait(0.01)
       .next(function() {
-        message = connection.emitMessage('testRequest', { command: 'foobar' }, callback);
+        message = connection.emitMessage('testRequest',
+                                         { command: 'foobar' },
+                                         callback);
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
         assert.deepEqual(backend.received[0][2], message);
 
-        response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
+        response = createReplyEnvelopeFor(message,
+                                          'testResponse',
+                                          'first call');
         callback.takes(null, response);
         packet = { tag: 'test.message', data: response };
         return utils.sendPacketTo(packet, utils.testReceivePort);
@@ -232,16 +238,21 @@ suite('Connection, basic features', function() {
     Deferred
       .wait(0.01)
       .next(function() {
-        message = connection.emitMessage('testRequest', { command: 'foobar' }, callback);
+        message = connection.emitMessage('testRequest',
+                                         { command: 'foobar' },
+                                         callback);
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
         assert.deepEqual(backend.received[0][2], message);
 
-        response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
+        response = createReplyEnvelopeFor(message,
+                                          'testResponse',
+                                          'first call');
         response.statusCode = 503;
         callback.takes(503, response);
         packet = { tag: 'test.message', data: response };
@@ -264,11 +275,13 @@ suite('Connection, basic features', function() {
     Deferred
       .wait(0.01)
       .next(function() {
-        message = connection.emitMessage('testRequest', { command: 'foobar' }, callback, {
-          timeout: 1000
-        });
+        message = connection.emitMessage('testRequest',
+                                         { command: 'foobar' },
+                                         callback,
+                                         { timeout: 1000 });
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.01)
       .next(function() {
@@ -276,7 +289,9 @@ suite('Connection, basic features', function() {
         assert.deepEqual(backend.received[0][2], message);
         assert.equal(connection.listeners('inReplyTo:' + message.id).length, 1);
 
-        response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
+        response = createReplyEnvelopeFor(message,
+                                          'testResponse',
+                                          'first call');
         callback.takes(null, response);
         packet = { tag: 'test.message', data: response };
         return utils.sendPacketTo(packet, utils.testReceivePort);
@@ -299,12 +314,14 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         callback.takes(Connection.ERROR_GATEWAY_TIMEOUT, null);
-        message = connection.emitMessage('testRequest', { command: 'foobar' }, callback, {
-          timeout:  1,
-          delay:    10
-        });
+        message = connection.emitMessage('testRequest',
+                                         { command: 'foobar' },
+                                         callback,
+                                         { timeout:  1,
+                                           delay:    10 });
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.05)
       .next(function() {
@@ -328,11 +345,13 @@ suite('Connection, basic features', function() {
     Deferred
       .wait(0.01)
       .next(function() {
-        message = connection.emitMessage('testRequest', { command: 'foobar' }, callback, {
-          timeout: -1
-        });
+        message = connection.emitMessage('testRequest',
+                                         { command: 'foobar' },
+                                         callback,
+                                         { timeout: -1 });
         assert.envelopeEqual(message,
-                             createExpectedEnvelope('testRequest', { command: 'foobar' }));
+                             createExpectedEnvelope('testRequest',
+                                                    { command: 'foobar' }));
       })
       .wait(0.01)
       .next(function() {
-------------- next part --------------
HTML����������������������������...
下載 



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