YUKI Hiroshi
null+****@clear*****
Tue Feb 5 18:03:46 JST 2013
YUKI Hiroshi 2013-02-05 18:03:46 +0900 (Tue, 05 Feb 2013) New Revision: ba77795f12ba575e95896989998870dc2bfb8246 https://github.com/groonga/express-kotoumi/commit/ba77795f12ba575e95896989998870dc2bfb8246 Log: Update expected registerd commands Modified files: test/frontend-rest-adaptor.test.js Modified: test/frontend-rest-adaptor.test.js (+11 -4) =================================================================== --- test/frontend-rest-adaptor.test.js 2013-02-05 18:00:12 +0900 (7064c90) +++ test/frontend-rest-adaptor.test.js 2013-02-05 18:03:46 +0900 (8610239) @@ -5,6 +5,7 @@ var utils = require('./test-utils'); var express = require('express'); var restAdaptor = require('../lib/frontend/rest-adaptor'); +var restCommands = require('../lib/frontend/default-commands/rest'); var Connection = require('../lib/backend/connection').Connection; suite('REST API', function() { @@ -55,10 +56,16 @@ suite('REST API', function() { }); assert.deepEqual(registeredCommands, - [basePlugin.getCommand, - basePlugin.putCommand, - overridingPlugin.postCommand, - overridingPlugin.deleteCommand]); + [{ command: 'search', + definition: restCommands.search }, + { command: 'getCommand', + definition: basePlugin.getCommand }, + { command: 'putCommand', + definition: basePlugin.putCommand }, + { command: 'postCommand', + definition: overridingPlugin.postCommand }, + { command: 'deleteCommand', + definition: overridingPlugin.deleteCommand }]); }); suite('registeration', function() { -------------- next part -------------- HTML����������������������������...Download