A library that allows for completely async tests, where the test does not end, until the finisher is called.
The body should be the same as for a normal test. That is, the same as you
would put in for body in test("description", body).
The following example demonstrates a test that only resolves after the
second emission from obs:
test("Async test", async((DoneFn done) {
Observable obs = Observable.fromIterable([1, 2);
obs.listen((int res) {
switch(res) {
case 0:
expect(res, 0);
break;
case 1:
expect(res, 1);
done();
break;
}
});
}));Please file feature requests and bugs at the issue tracker.