Exemple #1
0
 callService: function (serviceName, method, input, callback) {
   var SharedService = require('../' + serviceName + '/' + method);
   var serviceInstance = new SharedService();
   serviceInstance.service(new Context(), input, function (err, response, option) {
     if (!err) {
       callback(null, JSON.parse(response));
     }
   });
 },
 it('handles sc', function () {
   expect(namer.service('my_foo')).to.equal('myFoo');
 });
 it('handles lc', function () {
   expect(namer.service('foo')).to.equal('foo');
 });