[Groonga-commit] groonga/express-kotoumi [master] test: Add helpful messages to simple assertions

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Jan 29 15:47:02 JST 2013


YUKI Hiroshi	2013-01-29 15:47:02 +0900 (Tue, 29 Jan 2013)

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

  Log:
    test: Add helpful messages to simple assertions

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

  Modified: test/backend-connection.test.js (+4 -2)
===================================================================
--- test/backend-connection.test.js    2013-01-29 15:46:20 +0900 (7ee9b97)
+++ test/backend-connection.test.js    2013-01-29 15:47:02 +0900 (6f247a4)
@@ -308,8 +308,10 @@ suite('Connection, basic features', function() {
       })
       .wait(0.05)
       .next(function() {
-        assert.equal(backend.received.length, 0);
-        assert.equal(connection.listeners('inReplyTo:' + message.id).length, 0);
+        assert.equal(backend.received.length, 0, 'no message should be sent');
+        assert.equal(connection.listeners('inReplyTo:' + message.id).length,
+                     0,
+                     'no listener should be there');
         callback.assert();
         done();
       })
-------------- next part --------------
HTML����������������������������...
다운로드 



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