File |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Errors |
Total detected |
Total undetected |
Total mutants |
|
---|---|---|---|---|---|---|---|---|---|---|
RegisterController.js |
|
7/7 | 7 | 0 | 0 | 0 | 0 | 7 | 0 | 7 |
angular.module('juiceShop').controller('RegisterController', 0[][
'$scope',
'$location',
'UserService',
'SecurityQuestionService',
'SecurityAnswerService',
function ($scope, $location, userService, securityQuestionService, securityAnswerService) 1{
}{
'use strict'
securityQuestionService.find().then(function (securityQuestions) 2{
}{
$scope.securityQuestions = securityQuestions
}).catch(function (err) 3{
}{
console.log(err)
})
$scope.save = function () 4{
}{
userService.save($scope.user).then(function (user) 5{
}{
securityAnswerService.save({UserId: user.id, answer: $scope.user.securityAnswer, SecurityQuestionId: $scope.user.securityQuestion.id}).then(function () 6{
}{
$scope.user = {}
$location.path('/login')
})
})
}
}])