Skip to content

πŸ§ͺ Add test for analyzeImageAlts with no images#4

Merged
saurabhsharma2u merged 1 commit into
mainfrom
test/image-alt-no-images-4783777708590763546
Feb 25, 2026
Merged

πŸ§ͺ Add test for analyzeImageAlts with no images#4
saurabhsharma2u merged 1 commit into
mainfrom
test/image-alt-no-images-4783777708590763546

Conversation

@saurabhsharma2u

Copy link
Copy Markdown
Contributor

🎯 What: The testing gap addressed
This PR adds a unit test for analyzeImageAlts to cover the scenario where the input HTML contains no img tags.

πŸ“Š Coverage: What scenarios are now tested

  • Ensures analyzeImageAlts correctly returns counts of 0 for totalImages, missingAlt, and emptyAlt when no images are present in the HTML.

✨ Result: The improvement in test coverage

  • Confirms the robustness of the image analysis function for pages without images.

PR created automatically by Jules for task 4783777708590763546 started by @saurabhsharma2u

Added a new test case to `plugins/core/tests/analysis.unit.test.ts` to verify that `analyzeImageAlts` returns 0 for `totalImages`, `missingAlt`, and `emptyAlt` when the HTML input contains no `img` tags.
@google-labs-jules

Copy link
Copy Markdown

πŸ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a πŸ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@saurabhsharma2u
saurabhsharma2u marked this pull request as ready for review February 25, 2026 14:27
@saurabhsharma2u
saurabhsharma2u merged commit 2ffe7f1 into main Feb 25, 2026
6 checks passed
@saurabhsharma2u
saurabhsharma2u deleted the test/image-alt-no-images-4783777708590763546 branch February 25, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant