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"
|
script.type = "text/javascript"
|
||||||
|
|
||||||
|
/* istanbul ignore if */
|
||||||
if (src !== "") {
|
if (src !== "") {
|
||||||
script.src = src
|
script.src = src
|
||||||
script.async = false // force synchronous loading of peripheral JS
|
script.async = false // force synchronous loading of peripheral JS
|
||||||
@@ -23,6 +24,7 @@ module.exports = function(el) {
|
|||||||
script.appendChild(document.createTextNode(code))
|
script.appendChild(document.createTextNode(code))
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
/* istanbul ignore next */
|
||||||
// old IEs have funky script nodes
|
// old IEs have funky script nodes
|
||||||
script.text = code
|
script.text = code
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ module.exports = function(options) {
|
|||||||
return options
|
return options
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* istanbul ignore next */
|
||||||
function defaultAnalytics() {
|
function defaultAnalytics() {
|
||||||
if (window._gaq) {
|
if (window._gaq) {
|
||||||
_gaq.push(["_trackPageview"])
|
_gaq.push(["_trackPageview"])
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
module.exports = function(obj) {
|
module.exports = function(obj) {
|
||||||
|
/* istanbul ignore if */
|
||||||
if (null === obj || "object" !== typeof obj) {
|
if (null === obj || "object" !== typeof obj) {
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user