[Groonga-commit] groonga/express-kotoumi [master] test: Remove obsolete test

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Feb 7 17:43:27 JST 2013


YUKI Hiroshi	2013-02-07 17:43:27 +0900 (Thu, 07 Feb 2013)

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

  Log:
    test: Remove obsolete test

  Modified files:
    test/frontend-rest-adaptor.test.js

  Modified: test/frontend-rest-adaptor.test.js (+0 -45)
===================================================================
--- test/frontend-rest-adaptor.test.js    2013-02-07 17:40:24 +0900 (481e071)
+++ test/frontend-rest-adaptor.test.js    2013-02-07 17:43:27 +0900 (949479f)
@@ -82,12 +82,6 @@ suite('REST API', function() {
         path: '/path/to/api',
         toBackend: function() { return 'api requested'; },
         toClient: function() { return 'api OK'; }
-      }),
-      customCommandAPI: new model.REST({
-        command: 'custom',
-        path: '/path/to/customCommandAPI',
-        toBackend: function() { return 'customCommandAPI requested'; },
-        toClient: function() { return 'customCommandAPI OK'; }
       })
     };
 
@@ -187,45 +181,6 @@ suite('REST API', function() {
           done(error);
         });
     });
-
-    test('custom command name', function(done) {
-      var onReceive = {};
-      connection
-        .mock('emitMessage')
-          .takes('custom',
-                 'customCommandAPI requested',
-                 function() {},
-                 { 'timeout': null })
-          .ctrl(2, onReceive);
-
-      restAdaptor.register(application, {
-        prefix:     '',
-        connection: connection,
-        plugins:    [testPlugin]
-      });
-
-      var responseBody;
-      Deferred
-        .wait(0.01)
-        .next(function() {
-          utils.get('/path/to/customCommandAPI')
-            .next(function(response) {
-              responseBody = response.body;
-            });
-        })
-        .wait(0.01)
-        .next(function() {
-          onReceive.trigger(null, { body: 'API OK?' });
-        })
-        .wait(0.01)
-        .next(function() {
-          assert.equal(responseBody, 'customCommandAPI OK');
-          done();
-        })
-        .error(function(error) {
-          done(error);
-        });
-    });
   });
 
   suite('default commands', function() {
-------------- next part --------------
HTML����������������������������...
Download 



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