Browse Source

rename to disambiguate from clientVersion

activeAddress
Gregg Zigler 9 years ago
parent
commit
9b630002ae
  1. 2
      lib/expressapp.js
  2. 2
      lib/server.js
  3. 1
      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.version } );
res.json( { version: server.serverVersion } );
res.end();
});

2
lib/server.js

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

1
test/integration/server.js

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

Loading…
Cancel
Save