[Groonga-commit] groonga/express-kotoumi [master] test: Objects must be compared by assert.deepEqual instead of assert.equal

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jan 29 14:36:04 JST 2013


YUKI Hiroshi	2013-01-29 14:36:04 +0900 (Tue, 29 Jan 2013)

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

  Log:
    test: Objects must be compared by assert.deepEqual instead of assert.equal

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

  Modified: test/backend-connection.test.js (+6 -6)
===================================================================
--- test/backend-connection.test.js    2013-01-29 14:30:43 +0900 (c4d2524)
+++ test/backend-connection.test.js    2013-01-29 14:36:04 +0900 (355c28e)
@@ -124,7 +124,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
         done();
       })
       .error(function(error) {
@@ -201,7 +201,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
 
         response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
         callback.takes(null, response);
@@ -239,7 +239,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
 
         response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
         response.statusCode = 503;
@@ -271,7 +271,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
         assert.equal(connection.listeners('inReplyTo:' + message.id).length, 1);
 
         response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
@@ -303,7 +303,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
         assert.equal(connection.listeners('inReplyTo:' + message.id).length, 1);
 
         callback.takes(Connection.ERROR_GATEWAY_TIMEOUT, null);
@@ -334,7 +334,7 @@ suite('Connection, basic features', function() {
       .wait(0.01)
       .next(function() {
         assert.equal(backend.received.length, 1);
-        assert.equal(backend.received[0][2], message);
+        assert.deepEqual(backend.received[0][2], message);
         assert.equal(connection.listeners('inReplyTo:' + message.id).length, 1);
 
         response = createReplyEnvelopeFor(message, 'testResponse', 'first call');
-------------- next part --------------
HTML����������������������������...
Descargar 



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