Ignore lines from coverage if they can't be tested
This commit is contained in:
@@ -13,6 +13,7 @@ module.exports = function(el) {
|
||||
|
||||
script.type = "text/javascript"
|
||||
|
||||
/* istanbul ignore if */
|
||||
if (src !== "") {
|
||||
script.src = src
|
||||
script.async = false // force synchronous loading of peripheral JS
|
||||
@@ -23,6 +24,7 @@ module.exports = function(el) {
|
||||
script.appendChild(document.createTextNode(code))
|
||||
}
|
||||
catch (e) {
|
||||
/* istanbul ignore next */
|
||||
// old IEs have funky script nodes
|
||||
script.text = code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user