settings: fix references to alternativeName

This commit is contained in:
Manuel Araoz 2014-09-04 11:19:12 -03:00
commit 09ec6f04bb
2 changed files with 3 additions and 2 deletions

View file

@ -42,6 +42,7 @@ var FakeWallet = function() {
}; };
this.privateKey = new FakePrivateKey(); this.privateKey = new FakePrivateKey();
this.settings = {};
}; };
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) { FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {

View file

@ -139,8 +139,8 @@ describe("Unit: Controllers", function() {
scope = $rootScope.$new(); scope = $rootScope.$new();
scope.rateService = rateService; scope.rateService = rateService;
$rootScope.wallet = new FakeWallet(walletConfig); $rootScope.wallet = new FakeWallet(walletConfig);
config.alternativeName = 'lol currency'; $rootScope.wallet.settings.alternativeName = 'lol currency';
config.alternativeIsoCode = 'LOL'; $rootScope.wallet.settings.alternativeIsoCode = 'LOL';
var element = angular.element( var element = angular.element(
'<form name="form">' + '<form name="form">' +
'<input type="text" id="newaddress" name="newaddress" ng-disabled="loading" placeholder="Address" ng-model="newaddress" valid-address required>' + '<input type="text" id="newaddress" name="newaddress" ng-disabled="loading" placeholder="Address" ng-model="newaddress" valid-address required>' +