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

fix tests #10

Merged
merged 1 commit into from
Dec 31, 2015
Merged

fix tests #10

merged 1 commit into from
Dec 31, 2015

Conversation

SamVerschueren
Copy link
Contributor

Had to rewrite some tests because of avajs/ava#360. Not sure if it can be written cleaner or better?

@jamestalmage
Copy link
Contributor

@SamVerschueren - I think avajs/ava#395 would solve this better. Thoughts?

@SamVerschueren
Copy link
Contributor Author

That's how I did it before avajs/ava#360. So not sure why it was removed... Although not sure if it was removed in 360 or somewhere else.

@jamestalmage
Copy link
Contributor

It was removed in 360. You no longer need to await a t.throws or t.doesNotThrow, but I think it was an oversight that you no longer may do so.

@SamVerschueren
Copy link
Contributor Author

You no longer need to await a t.throws or t.doesNotThrow

Which is nice :)

I think it was an oversight that you no longer may do so.

You can't always oversee all the use cases :).

@sindresorhus
Copy link
Owner

@SamVerschueren Why not just remove the await? Throws supports waiting for the promise.

@SamVerschueren
Copy link
Contributor Author

Because it needs to know the time it takes to reject the promise, I have to wait for the promise to reject.

@sindresorhus
Copy link
Owner

Ah, missed that.

sindresorhus added a commit that referenced this pull request Dec 31, 2015
@sindresorhus sindresorhus merged commit aab8a40 into master Dec 31, 2015
@sindresorhus sindresorhus deleted the tests branch December 31, 2015 10:47
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

Successfully merging this pull request may close these issues.

3 participants