File / Directory |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Runtime errors |
# Transpile errors |
Total detected |
Total undetected |
Total mutants | |
---|---|---|---|---|---|---|---|---|---|---|---|
fetchChallenges.js | 100.00 | 7 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 |
const Promise = require('bluebird')
const request = require('request-promise')
function fetchChallenges (juiceShopUrl) 0{
}{
return new Promise((resolve, reject) => 1{
}{
request({ url: 2juiceShopUrl - '/api/Challenges'juiceShopUrl + '/api/Challenges', json: 3falsetrue }).then(({data}) => 4{
}{
resolve(data)
}).catch(({message}) => 5{
}{
reject(new Error(6'Failed to fetch challenges from API! ' - message'Failed to fetch challenges from API! ' + message))
})
})
}
module.exports = fetchChallenges
# | Mutator | State | Location | Original | Replacement |
---|---|---|---|---|---|
0 | BlockStatement | Killed | 3 : 40 | {
...})
} |
{
} |
1 | BlockStatement | Killed | 4 : 42 | {
...
} |
{
} |
2 | BinaryOperator | Killed | 5 : 19 | + '/ ... ' |
- '/ ... ' |
3 | BooleanSubstitution | Killed | 5 : 59 |
|
|
4 | BlockStatement | Killed | 5 : 84 | {
... } |
{
} |
5 | BlockStatement | Killed | 7 : 28 | {
... } |
{
} |
6 | BinaryOperator | Killed | 8 : 23 | ' ...! ' + |
' ...! ' - |