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( '
' + '' +