0.0.1 • Published 11 months ago

@hudson-newey/ng-jasmine-async-wrapper v0.0.1

Weekly downloads
-
License
Unilicense
Repository
github
Last release
11 months ago

ngx-Jasmine async wrapper

A wrapper for async functions in Angular + Jasmine tests

Usage

it("should create", asyncTest(() => {
    expect(component).toBeInstanceOf(App);
}));

Why?

Because

  1. Jasmine throws an error if there are still async tasks waiting
  2. 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