969 of 3390 branches covered (0.0%)
Branch coverage included in aggregate %.
133 of 311 new or added lines in 22 files covered. (42.77%)
1642 existing lines in 56 files now uncovered.4142 of 8063 relevant lines covered (51.37%)
4.05 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 |
}; |