[Groonga-commit] droonga/express-droonga at f3c14b5 [master] Fix a typo

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 21 18:37:24 JST 2014


Kouhei Sutou	2014-01-21 18:37:24 +0900 (Tue, 21 Jan 2014)

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

  Message:
    Fix a typo
    
    registeration
    regist ration
          -

  Modified files:
    lib/adapter/http.js
    test/adapter/http.test.js

  Modified: lib/adapter/http.js (+3 -3)
===================================================================
--- lib/adapter/http.js    2014-01-21 18:36:37 +0900 (c602966)
+++ lib/adapter/http.js    2014-01-21 18:37:24 +0900 (5e4f092)
@@ -104,7 +104,7 @@ function createGenericHandler(params) {
 }
 exports.createGenericHandler = createGenericHandler;
 
-function getRegisterationMethod(method) {
+function getRegistrationMethod(method) {
   method = method || 'GET';
   switch (method.toUpperCase()) {
     case 'PUT':    return 'put';
@@ -113,7 +113,7 @@ function getRegisterationMethod(method) {
     default:       return 'get';
  }
 }
-exports.getRegisterationMethod = getRegisterationMethod;
+exports.getRegistrationMethod = getRegistrationMethod;
 
 exports.register = function(application, params) {
   params = params || {};
@@ -144,7 +144,7 @@ exports.register = function(application, params) {
     if (!command.HTTPCommand.isInstance(definition))
       return;
 
-    var method = getRegisterationMethod(definition.method);
+    var method = getRegistrationMethod(definition.method);
 
     var creator;
     if (command.RequestResponse.isInstance(definition)) {

  Modified: test/adapter/http.test.js (+1 -1)
===================================================================
--- test/adapter/http.test.js    2014-01-21 18:36:37 +0900 (dc54b8c)
+++ test/adapter/http.test.js    2014-01-21 18:37:24 +0900 (82aa62a)
@@ -43,7 +43,7 @@ suite('HTTP Adapter', function() {
                         definition: droongaAPI["droonga-streaming:watch"] }]);
   });
 
-  suite('registeration', function() {
+  suite('registration', function() {
     var testPlugin = {
       adapter: new command.HTTPRequestResponse({
         path: '/path/to/adapter',
-------------- next part --------------
HTML����������������������������...
Download 



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