test allow duplicate tx if no id is specified

This commit is contained in:
Ivan Socolsky 2016-07-26 11:03:29 -03:00
parent 04fdc090bd
commit d47bf73dd8
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 11 additions and 1 deletions

View File

@ -3053,7 +3053,17 @@ describe('Wallet service', function() {
should.not.exist(err);
should.exist(txs);
txs.length.should.equal(1);
done();
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();
});
});
});
});
});