From 4c5d3883e1cd8af433e1d88f5241365b462007d5 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 26 Jun 2014 18:15:27 -0300 Subject: [PATCH] fix import and send, and add test --- js/controllers/import.js | 2 +- js/controllers/send.js | 2 +- test/unit/controllers/controllersSpec.js | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) 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); + }); + + }); + });