Merge pull request #1059 from yemel/feature/change-menu

Refactor menu, split transactions tab into send and history
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-07 10:26:40 -03:00
commit fe53f1b87c
12 changed files with 235 additions and 209 deletions

View file

@ -194,9 +194,12 @@ describe("Unit: Controllers", function() {
var spy = sinon.spy(scope.wallet, 'createTx');
var spy2 = sinon.spy(scope.wallet, 'sendTx');
scope.loadTxs = sinon.spy();
scope.submitForm(sendForm);
sinon.assert.callCount(spy, 1);
sinon.assert.callCount(spy2, 0);
sinon.assert.callCount(scope.loadTxs, 1);
});
it('should create and send a transaction proposal', function() {
@ -206,10 +209,12 @@ describe("Unit: Controllers", function() {
scope.wallet.totalCopayers = scope.wallet.requiredCopayers = 1;
var spy = sinon.spy(scope.wallet, 'createTx');
var spy2 = sinon.spy(scope.wallet, 'sendTx');
scope.loadTxs = sinon.spy();
scope.submitForm(sendForm);
sinon.assert.callCount(spy, 1);
sinon.assert.callCount(spy2, 1);
sinon.assert.callCount(scope.loadTxs, 1);
});
});