788 of 3386 branches covered (0.0%)
Branch coverage included in aggregate %.
108 of 299 new or added lines in 21 files covered. (36.12%)
2132 existing lines in 58 files now uncovered.3057 of 7484 relevant lines covered (40.85%)
1.8 hits per line
1 |
module.exports = class Validator {
|
1✔ |
2 |
static isJSON(json) {
|
|
UNCOV
3
|
try {
|
× |
UNCOV
4
|
JSON.parse(json); |
× |
5 |
} catch (e) {
|
|
UNCOV
6
|
return false; |
× |
7 |
} |
|
UNCOV
8
|
return true; |
× |
9 |
} |
|
10 |
}; |