Browse Source

rename server to service

activeAddress
Gregg Zigler 10 years ago
parent
commit
19cb11abeb
  1. 2
      lib/expressapp.js
  2. 2
      lib/server.js
  3. 2
      test/integration/server.js

2
lib/expressapp.js

@ -417,7 +417,7 @@ ExpressApp.prototype.start = function(opts, cb) {
router.get('/v1/version/', function(req, res) {
var server = getServer(req, res);
res.json( { version: server.serverVersion } );
res.json( { serviceVersion: server.serviceVersion } );
res.end();
});

2
lib/server.js

@ -50,7 +50,7 @@ function WalletService() {
this.blockchainExplorerOpts = blockchainExplorerOpts;
this.messageBroker = messageBroker;
this.notifyTicker = 0;
this.serverVersion = 'bws-' + Package.version;
this.serviceVersion = 'bws-' + Package.version;
};

2
test/integration/server.js

@ -756,7 +756,7 @@ describe('Wallet service', function() {
clientVersion: 'bwc-0.0.1',
});
server.clientVersion.should.equal('bwc-0.0.1');
server.serverVersion.indexOf('bws-').should.equal(0);
server.serviceVersion.indexOf('bws-').should.equal(0);
});
});

Loading…
Cancel
Save