Skip to content

Commit

Permalink
build: try the hard way
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Aug 26, 2024
1 parent 4aee481 commit 8339a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/core/testing/wait-for-image-ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function waitForImageReady(
element.addEventListener('load', () => {
clearTimeout(timeout);
if (isSafari) {
setTimeout(resolve, 100);
setTimeout(resolve, 1000);

Check warning on line 14 in src/elements/core/testing/wait-for-image-ready.ts

View check run for this annotation

Codecov / codecov/patch

src/elements/core/testing/wait-for-image-ready.ts#L14

Added line #L14 was not covered by tests
} else {
resolve();
}
Expand All @@ -22,6 +22,6 @@ export async function waitForImageReady(
});
});
} else if (isSafari) {
await new Promise((resolve) => setTimeout(resolve, 100));
await new Promise((resolve) => setTimeout(resolve, 1000));

Check warning on line 25 in src/elements/core/testing/wait-for-image-ready.ts

View check run for this annotation

Codecov / codecov/patch

src/elements/core/testing/wait-for-image-ready.ts#L25

Added line #L25 was not covered by tests
}
}

0 comments on commit 8339a1f

Please sign in to comment.