Skip to content

Commit

Permalink
Merge pull request #228 from adobe/test-ignore
Browse files Browse the repository at this point in the history
test(coverage): ignore error cases in test coverage
  • Loading branch information
trieloff committed Jul 4, 2024
2 parents 787be0e + 370e0c5 commit d199a6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function trackCheckpoint(checkpoint, data, t) {
if (window.location.origin === origin) {
const headers = { type: 'application/json' };
navigator.sendBeacon(url, new Blob([body], headers));
/* c8 ignore next 3 */
} else {
navigator.sendBeacon(url, body);
}
Expand Down Expand Up @@ -97,6 +98,7 @@ function addCWVTracking() {
});
};
document.head.appendChild(script);
/* c8 ignore next 3 */
} catch (error) {
// something went wrong
}
Expand Down Expand Up @@ -153,6 +155,7 @@ function addLoadResourceTracking() {
.forEach((entry) => {
sampleRUM('missingresource', { source: entry.name, target: entry.hostname });
});
/* c8 ignore next 3 */
} catch (error) {
// something went wrong
}
Expand Down Expand Up @@ -187,6 +190,7 @@ function getIntersectionObsever(checkpoint) {
const source = sourceSelector(entry.target);
sampleRUM(checkpoint, { target, source });
});
/* c8 ignore next 3 */
} catch (error) {
// something went wrong
}
Expand Down

0 comments on commit d199a6f

Please sign in to comment.