Skip to content

Provide a user-friendly way to get at Jasmine's done fn #8156

Closed

Description

@juliemr

The current thought is to have something similar to the internal AsyncTestCompleter but with a more user-friendly name:

it('is a test that explicitly needs done', inject([MyService, Done], (service, done) {
  doComplicatedAsync()
      .whenItsFinished(done)
      .ifItFails(done.fail);
}));

cc @wardbell @vikerman

Activity

  1. added
    area: testingIssues related to Angular testing features, such as TestBed
    on Apr 20, 2016
  2. self-assigned this
    on Apr 20, 2016
  3. vikerman commented on Apr 21, 2016

    @vikerman
    Contributor

    One problem with the inject([Done]) pattern is that it makes inject() which is expected to be synchronous to an asynchronous test function. Can we make the Done concept associated with async instead of inject?

  4. juliemr commented on Apr 26, 2016

    @juliemr
    ContributorAuthor

    Will be resolved with #8257

  5. juliemr commented on Apr 28, 2016

    @juliemr
    ContributorAuthor
  6. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: testingIssues related to Angular testing features, such as TestBed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions