π§ͺ Test analyzeLinks with no links#9
Conversation
Added a unit test for `analyzeLinks` to verify behavior when the input HTML contains no anchor tags. Ensures `externalRatio` is 0 to avoid NaN.
|
π 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
π― What: Added a unit test for
analyzeLinksinplugins/core/tests/analysis.unit.test.ts.π Coverage: The test covers the scenario where the input HTML contains no anchor tags.
β¨ Result: Verified that
internalLinks,externalLinks,nofollowCountare 0, andexternalRatiois 0, ensuring correct handling of division by zero.PR created automatically by Jules for task 16839551563453047620 started by @saurabhsharma2u