Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Async and callback tests #6

Open
novemberborn opened this issue Sep 13, 2018 · 0 comments
Open

Async and callback tests #6

novemberborn opened this issue Sep 13, 2018 · 0 comments

Comments

@novemberborn
Copy link
Member

Given that this package wraps AVA's test & assertion interfaces, I wonder if we need to actually expose all interfaces.

E.g. AVA has callback tests (test.cb(t => { t.pass(); t.end() })). Does that make sense in BuckleScript?

Asynchronous tests need to be marked up as such in the syntax, and assertions over promises require throwsAsync / notThrowsAsync. Does BuckleScript have the concept of promises?

We should do what makes sense for BuckleScript, rather than try and be a perfect wrapper of AVA itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant