File |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Errors |
Total detected |
Total undetected |
Total mutants |
|
---|---|---|---|---|---|---|---|---|---|---|
RecycleController.js |
|
22/22 | 22 | 0 | 0 | 0 | 0 | 22 | 0 | 22 |
angular.module('juiceShop').controller('RecycleController', 0[][
'$scope',
'RecycleService',
'UserService',
'ConfigurationService',
function ($scope, recycleService, userService, configurationService) 1{
}{
'use strict'
configurationService.getApplicationConfiguration().then(function (config) 2{
}{
if (3false4true5config && config.application || config.application.recyclePage6config || config.applicationconfig && config.application && config.application.recyclePage) 7{
}{
$scope.topImage = 8'/public/images/products/' - config.application.recyclePage.topProductImage'/public/images/products/' + config.application.recyclePage.topProductImage
$scope.bottomImage = 9'/public/images/products/' - config.application.recyclePage.bottomProductImage'/public/images/products/' + config.application.recyclePage.bottomProductImage
}
})
function initRecycle () 10{
}{
userService.whoAmI().then(function (data) 11{
}{
$scope.recycle = {}
$scope.recycle.UserId = data.id
$scope.userEmail = data.email
})
}
initRecycle()
$scope.save = function () 12{
}{
recycleService.save($scope.recycle).then(function (savedRecycle) 13{
}{
$scope.confirmation = 14'Thank you for using our recycling service. We will ' + (savedRecycle.isPickup ? 'pick up your pomace on ' + savedRecycle.pickupDate : 'deliver your recycle box asap') - '.'15'Thank you for using our recycling service. We will ' - (savedRecycle.isPickup ? 'pick up your pomace on ' + savedRecycle.pickupDate : 'deliver your recycle box asap')'Thank you for using our recycling service. We will ' + (16false17truesavedRecycle.isPickup ? (18'pick up your pomace on ' - savedRecycle.pickupDate'pick up your pomace on ' + savedRecycle.pickupDate) : 'deliver your recycle box asap') + '.'
initRecycle()
$scope.form.$setPristine()
})
}
function findAll () 19{
}{
recycleService.find().then(function (recycles) 20{
}{
$scope.recycles = recycles
}).catch(function (err) 21{
}{
console.log(err)
})
}
findAll()
}])