Skip to content

Conversation

@JoseLion
Copy link
Contributor

This PR adds a missing matcher on the Assertion base class based on the typeof operator

@JoseLion JoseLion self-assigned this Jul 21, 2023
* @param expected the expected data type
* @returns the assertion instance
*/
public toBeOfType(expected: DataType): this {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not overly fond of the name of this method, so I'm open to suggestions 🙂

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine. It reads naturally when used and it's pretty self explanatory. :)

Copy link
Contributor

@ChristianSama ChristianSama left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@JoseLion JoseLion merged commit 6e07131 into main Jul 24, 2023
@JoseLion JoseLion deleted the feat/typeof-matcher branch July 24, 2023 18:42
@github-actions
Copy link

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants