Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(function): Refactor FunctionAssertion and add ErrorAssertion #30

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

JoseLion
Copy link
Member

Based on the TypeFactories change we added, I found now possible to refactor the FunctionAssertion methods to give a better experience when checking for errors thrown.

@Alex0jk since you did the first iteration of FunctionAssertion, please let me know what you think about the change 🙂

Copy link
Contributor

@Alex0jk Alex0jk left a comment

Choose a reason for hiding this comment

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

Looks pretty good. I like the error assertion addition, and how it plays with the function assertion.

src/lib/ErrorAssertion.ts Show resolved Hide resolved
src/lib/ErrorAssertion.ts Show resolved Hide resolved
src/lib/FunctionAssertion.ts Show resolved Hide resolved
src/lib/FunctionAssertion.ts Show resolved Hide resolved
Copy link
Contributor

@Alex0jk Alex0jk 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 2baccd0 into master Jun 29, 2022
@JoseLion JoseLion deleted the function-assertion/refactor-and-error-assertion branch June 29, 2022 15:35
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.

2 participants