789 of 3386 branches covered (0.0%)
Branch coverage included in aggregate %.
107 of 298 new or added lines in 21 files covered. (35.91%)
2209 existing lines in 58 files now uncovered.3101 of 7609 relevant lines covered (40.75%)
1.97 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 |
}; |