diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index 2efd62a46..02ae10eb9 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -24,7 +24,7 @@ describe("Unit: Controllers", function() { beforeEach(module('copayApp.services')); beforeEach(module('copayApp.controllers')); - var config = { + var walletConfig = { requiredCopayers: 3, totalCopayers: 5, spendUnconfirmed: 1, @@ -32,12 +32,18 @@ describe("Unit: Controllers", function() { networkName: 'testnet' }; + it('Copay config should be binded', function() { + should.exist(config); + should.exist(config.unitToSatoshi); + }); + + describe('Backup Controller', function() { var ctrl; beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); - $rootScope.wallet = new FakeWallet(config); + $rootScope.wallet = new FakeWallet(walletConfig); ctrl = $controller('MoreController', { $scope: scope, $modal: {}, @@ -122,7 +128,7 @@ describe("Unit: Controllers", function() { beforeEach(angular.mock.module('copayApp')); beforeEach(angular.mock.inject(function($compile, $rootScope, $controller) { scope = $rootScope.$new(); - $rootScope.wallet = new FakeWallet(config); + $rootScope.wallet = new FakeWallet(walletConfig); var element = angular.element( '