969 of 3390 branches covered (0.0%)
Branch coverage included in aggregate %.
132 of 310 new or added lines in 22 files covered. (42.58%)
1642 existing lines in 56 files now uncovered.4141 of 8063 relevant lines covered (51.36%)
3.9 hits per line
1 |
module.exports = class Validator {
|
1✔ |
2 |
static isJSON(json) {
|
|
3 |
try {
|
3✔ |
4 |
JSON.parse(json); |
3✔ |
5 |
} catch (e) {
|
|
6 |
return false; |
3✔ |
7 |
} |
|
UNCOV
8
|
return true; |
× |
9 |
} |
|
10 |
}; |