From 09ec6f04bbe0b9d9f73759abe5b95e0dd50c562c Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 4 Sep 2014 11:19:12 -0300 Subject: [PATCH] settings: fix references to alternativeName --- test/mocks/FakeWallet.js | 1 + test/unit/controllers/controllersSpec.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/mocks/FakeWallet.js b/test/mocks/FakeWallet.js index ee2621a1e..e4a7bc8d7 100644 --- a/test/mocks/FakeWallet.js +++ b/test/mocks/FakeWallet.js @@ -42,6 +42,7 @@ var FakeWallet = function() { }; this.privateKey = new FakePrivateKey(); + this.settings = {}; }; FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) { diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index abd154840..be9e9553d 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -139,8 +139,8 @@ describe("Unit: Controllers", function() { scope = $rootScope.$new(); scope.rateService = rateService; $rootScope.wallet = new FakeWallet(walletConfig); - config.alternativeName = 'lol currency'; - config.alternativeIsoCode = 'LOL'; + $rootScope.wallet.settings.alternativeName = 'lol currency'; + $rootScope.wallet.settings.alternativeIsoCode = 'LOL'; var element = angular.element( '
' + '' +