fix setup, add test

This commit is contained in:
Manuel Araoz 2014-06-26 18:22:32 -03:00
parent 4c5d3883e1
commit 8d3d35ff83
2 changed files with 9 additions and 1 deletions

View File

@ -33,7 +33,7 @@ var valid_pairs = {
};
angular.module('copayApp.controllers').controller('SetupController',
function($scope, $rootScope, $location, $timeout, walletFactory, controllerUtils, Passphrase) {
function($scope, $rootScope, $location, $timeout, walletFactory, controllerUtils, Passphrase, backupService, notification) {
$rootScope.videoInfo = {};
$scope.loading = false;

View File

@ -73,6 +73,14 @@ describe("Unit: Controllers", function() {
expect(array.length).equal(n);
});
});
describe('#create', function() {
it('should work with invalid form', function() {
var form = {
$invalid: true
};
scope.create(form);
});
});
});