Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
Ignore conditional handler for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
flyandi committed Feb 21, 2021
1 parent d2d500d commit 02280a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loaders/ImageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const ImageLoader = {
request = new window.XMLHttpRequest();
request.open('GET', url, true);
if (process.env.npm_lifecycle_event !== 'test') {
/* istanbul ignore next */
request.onreadystatechange = function () {
if (this.readyState === 4 && this.status >= 400) {
onError();
Expand Down

0 comments on commit 02280a4

Please sign in to comment.