Skip to content

Commit

Permalink
tests: use getFrameCount in tests properly
Browse files Browse the repository at this point in the history
  • Loading branch information
terrysahaidak committed Aug 6, 2024
1 parent cfd4e4c commit 657d190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/src/renderer/__tests__/e2e/AnimatedImages.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ describe("Animated Images", () => {
if (!animatedImage) {
return false;
}
animatedImage.getFrameCount();

if (animatedImage.getFrameCount() !== 1) {
return false;
}

animatedImage.decodeNextFrame();
animatedImage.getCurrentFrame();
animatedImage.currentFrameDuration();
Expand Down

0 comments on commit 657d190

Please sign in to comment.