From 4139cb0ae799097e95919a46d1cc95eb2c8814a8 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 29 Jun 2015 08:40:39 -0300 Subject: [PATCH] test client version stored --- test/integration/server.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/integration/server.js b/test/integration/server.js index 3b93e23..591c822 100644 --- a/test/integration/server.js +++ b/test/integration/server.js @@ -576,9 +576,7 @@ describe('Wallet service', function() { describe('#getInstanceWithAuth', function() { - - it('should get server instance for existing copayer', function(done) { - + it.only('should get server instance for existing copayer', function(done) { helpers.createAndJoinWallet(1, 2, function(s, wallet) { var xpriv = TestData.copayers[0].xPrivKey; var priv = TestData.copayers[0].privKey_1H_0; @@ -589,8 +587,12 @@ describe('Wallet service', function() { copayerId: wallet.copayers[0].id, message: 'hello world', signature: sig, + clientVersion: 'bwc-0.0.1', }, function(err, server) { should.not.exist(err); + server.walletId.should.equal(wallet.id); + server.copayerId.should.equal(wallet.copayers[0].id); + server.clientVersion.should.equal('bwc-0.0.1'); done(); }); });