diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/ifTestData.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/ifTestData.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/ifTestData.js b/server/sonar-web/src/main/js/helpers/handlebars/ifTestData.js new file mode 100644 index 00000000000..ac00900c087 --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/handlebars/ifTestData.js @@ -0,0 +1,7 @@ +module.exports = function (test, options) { + if ((test.status !== 'OK') || ((test.status === 'OK') && test.coveredLines)) { + return options.fn(this); + } else { + return options.inverse(this); + } +}; |