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

Add rejects to uvu/asset #155

Closed
ai opened this issue Nov 3, 2021 · 2 comments
Closed

Add rejects to uvu/asset #155

ai opened this issue Nov 3, 2021 · 2 comments

Comments

@ai
Copy link
Contributor

ai commented Nov 3, 2021

What do you think about adding very popular matcher to uvu/asset? Like throws, but for async function.

rejects(() => asyncFn(), 'Some error')

Or we can add async support to throws when cb returns Promise.

throws(async () => asyncFn(), 'Some error')
@lukeed
Copy link
Owner

lukeed commented Nov 4, 2021

Duplicate of #131 and implemented in #132 🎉
It's going to be part of the next minor release :)

@lukeed lukeed closed this as completed Nov 4, 2021
@Heartnett
Copy link

Heartnett commented Aug 28, 2023

Duplicate of #131 and implemented in #132 🎉 It's going to be part of the next minor release :)

Waiting for this feature to be released...

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

No branches or pull requests

3 participants