got user tests to pass
This commit is contained in:
parent
6fbfa35473
commit
88fbf9e51f
@ -9,7 +9,7 @@ angular.module('users').controller('AuthenticationController', ['$scope', '$loca
|
||||
$scope.forms = {};
|
||||
|
||||
$scope.signin = function() {
|
||||
if(!$scope.forms.signinForm.$invalid){
|
||||
if($scope.forms && $scope.forms.hasOwnProperty('siginForm') && !$scope.forms.signinForm.$invalid){
|
||||
User.login($scope.credentials).then(
|
||||
function(response) {
|
||||
Auth.login(response);
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
|
||||
// Load the main application module
|
||||
beforeEach(module(ApplicationConfiguration.applicationModuleName));
|
||||
|
||||
beforeEach(module('module-templates'));
|
||||
beforeEach(module('stateMock'));
|
||||
|
||||
// Mock Users Service
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user