diff --git a/js/controllers/import.js b/js/controllers/import.js index 3756aebf6..a1991d159 100644 --- a/js/controllers/import.js +++ b/js/controllers/import.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('ImportController', - function($scope, $rootScope, walletFactory, controllerUtils, Passphrase) { + function($scope, $rootScope, walletFactory, controllerUtils, Passphrase, notification) { $scope.title = 'Import a backup'; $scope.importStatus = 'Importing wallet - Reading backup...'; diff --git a/js/controllers/send.js b/js/controllers/send.js index da4bf5610..000f3a71d 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -2,7 +2,7 @@ var bitcore = require('bitcore'); angular.module('copayApp.controllers').controller('SendController', - function($scope, $rootScope, $window, $location, $timeout, $anchorScroll, $modal, isMobile) { + function($scope, $rootScope, $window, $location, $timeout, $anchorScroll, $modal, isMobile, notification) { $scope.title = 'Send'; $scope.loading = false; var satToUnit = 1 / config.unitToSatoshi; diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index 7dcadc715..2e4448bad 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -301,4 +301,19 @@ describe("Unit: Controllers", function() { }); }); + describe('Import Controller', function() { + var what; + beforeEach(inject(function($controller, $rootScope) { + scope = $rootScope.$new(); + what = $controller('ImportController', { + $scope: scope, + }); + })); + + it('should exist', function() { + should.exist(what); + }); + + }); + });