Browse Source

test allow duplicate tx if no id is specified

activeAddress
Ivan Socolsky 9 years ago
parent
commit
d47bf73dd8
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 10
      test/integration/server.js

10
test/integration/server.js

@ -3053,6 +3053,14 @@ describe('Wallet service', function() {
should.not.exist(err); should.not.exist(err);
should.exist(txs); should.exist(txs);
txs.length.should.equal(1); txs.length.should.equal(1);
txOpts.txProposalId = null;
server.createTx(txOpts, function(err, tx) {
should.not.exist(err);
should.exist(tx);
tx.id.should.not.equal('123');
server.storage.fetchTxs(wallet.id, {}, function(err, txs) {
should.not.exist(err);
txs.length.should.equal(2);
done(); done();
}); });
}); });
@ -3060,6 +3068,8 @@ describe('Wallet service', function() {
}); });
}); });
}); });
});
});
it('should be able to publish a temporary tx proposal', function(done) { it('should be able to publish a temporary tx proposal', function(done) {
helpers.stubUtxos(server, wallet, [1, 2], function() { helpers.stubUtxos(server, wallet, [1, 2], function() {
var txOpts = { var txOpts = {

Loading…
Cancel
Save