Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Consider supporting asynchronous properties (maybe with Promise) #1

Open
robotlolita opened this issue Feb 27, 2013 · 2 comments
Open

Comments

@robotlolita
Copy link
Member

No description provided.

@kennknowles
Copy link
Contributor

I currently use Claire with mocha and for tests that need to be asynchronous I don't know the best way to do it. I actually have generally made the test non-quantified, which is too bad.

Perhaps something like this is the pattern?

it("blah blah blah", function(done) {
   var values = ... // grab a bunch of values out of generator.next(100) ...
   when.all(_(values).map(someAsyncPromiseTest)).then(done);
});

Just for reference of the sort of thing that would be nice to somehow support within Claire.

@robotlolita
Copy link
Member Author

Yeah, I'm considering it. Will probably get on it once I've got shrinking working (which is my priority now).

Sorry for the lack of updates/late response though, I've been travelling for the past month and haven't been able to work on anything, once I get back home next week I'll get back to hacking on Claire :)

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

No branches or pull requests

2 participants