0.0.1 • Published 11 months ago
@hudson-newey/ng-jasmine-async-wrapper v0.0.1
ngx-Jasmine async wrapper
A wrapper for async functions in Angular + Jasmine tests
Usage
it("should create", asyncTest(() => {
expect(component).toBeInstanceOf(App);
}));
Why?
Because
- Jasmine throws an error if there are still async tasks waiting
- Discarding async tasks must be done explicitly as they have to be discarded in the same async zone as they were created (we can't use
afterEach
)
0.0.1
11 months ago