Skip to content

Example doesn't show how to handle async blocks #2

Description

@hokster7

The example given in the README:

    expect(getUser()).toBeUndefined();

    loadUser(); //function that invokes Query.find

    expect(getUser()).toBeDefined();
    expect(stub.callCount).toEqual(1); //do assertions on stub object if necessary

Sorry, I'm relatively new to Javascript Async unit testing. It's always useful to have these things spelled out for newbies ;).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions