Skip to content

Conversation

@JDOM10
Copy link
Collaborator

@JDOM10 JDOM10 commented Jan 21, 2026

Added toHaveDescription matcher.

@JDOM10 JDOM10 requested a review from SbsCruz January 21, 2026 19:51
@JDOM10 JDOM10 self-assigned this Jan 21, 2026
@JDOM10 JDOM10 added the enhancement New feature or request label Jan 21, 2026
@JDOM10 JDOM10 requested a review from suany0805 January 21, 2026 20:27
Copy link
Contributor

@SbsCruz SbsCruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Juandi!
I just left some comments for you to review, thanks for working on this 🚀

};

/**
* Normalizes text by collapsing whitespace and trimming.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the description of this function, but i think it would be better if we keep this file with no comments, wdyt

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think it would be better to keep this file with no comments!

* @param text - The text to normalize.
* @returns The normalized text.
*/
export function normalizeText(text: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the export for here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right! We don't need the exporthere. Thanks!

Comment on lines +282 to +283
* @param expectedDescription
* - Optional expected description (string or RegExp).
Copy link
Contributor

@SbsCruz SbsCruz Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you put this in one line please so it has same structure as the other matchers please

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to put like that because of the lenght of the line due to linter configuration!

@JDOM10 JDOM10 requested a review from SbsCruz January 23, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants