add TODO list and test cases

This commit is contained in:
Ivan Socolsky 2015-02-07 11:15:54 -03:00
parent 313ebee63d
commit 0ee2abf841
2 changed files with 29 additions and 1 deletions

5
TODO.txt Normal file
View File

@ -0,0 +1,5 @@
- When creating a wallet, the id should be generated by the server and returned to the client to be used as part of the wallet secret.
- Copayer id should be auto-generated.
- Check not blank & length < 100 for both wallet.name & copayer.name
- Proposal with spent input should be tagged as invalid or removed
- Cron job to broadcast accepted txps that failed to broadcast (we may need to track broadcast attempts for this).

View File

@ -610,6 +610,9 @@ describe('Copay server', function() {
});
});
it.skip('should fail to create address when wallet is not complete', function(done) {
});
it('should create many addresses on simultaneous requests', function(done) {
async.map(_.range(10), function(i, cb) {
server.createAddress({
@ -724,6 +727,12 @@ describe('Copay server', function() {
});
});
it.skip('should fail to create tx when wallet is not complete', function(done) {
});
it.skip('should fail to create tx when wallet is not complete', function(done) {
});
it('should fail to create tx when insufficient funds', function(done) {
helpers.createUtxos(server, wallet, helpers.toSatoshi([100]), function(utxos) {
helpers.stubBlockExplorer(server, utxos);
@ -896,7 +905,7 @@ describe('Copay server', function() {
});
});
});
it('should fail on invalids signature', function(done) {
it('should fail on invalid signature', function(done) {
server.getPendingTxs({}, function(err, txs) {
var tx = txs[0];
tx.id.should.equal(txid);
@ -1004,4 +1013,18 @@ describe('Copay server', function() {
});
});
});
describe('Multisignature wallet', function() {
it.skip('all copayers should see pending proposal created by one copayer', function (done) {
});
it.skip('tx proposals should not be broadcast until quorum is reached', function (done) {
});
it.skip('tx proposals should accept as many rejections as possible without finally rejecting', function (done) {
});
it.skip('proposal creator should be able to delete proposal if there are no other signatures', function (done) {
});
});
});