mirror of https://github.com/BTCPrivate/copay.git
fix setup, add test
This commit is contained in:
parent
4c5d3883e1
commit
8d3d35ff83
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue