Added tests

This commit is contained in:
Matias Pando 2015-03-09 15:24:37 -03:00
parent 12b6d924cf
commit 9bb7f221fe
1 changed files with 12 additions and 1 deletions

View File

@ -1648,7 +1648,18 @@ describe('Copay server', function() {
done();
});
});
it.skip('should get someone elses transaction proposal', function(done) {});
it('should get someone elses transaction proposal', function(done) {
helpers.getAuthServer(wallet.copayers[1].id, function(server2, wallet) {
server2.getTx({
txProposalId: txpid
}, function(err, res) {
should.not.exist(err);
res.id.should.equal(txpid);
done();
});
});
});
it('should fail to get non-existent transaction proposal', function(done) {
server.getTx({
txProposalId: 'dummy'