Skip to content

Question: Passing an error into the done() callback? #9

@geekytime

Description

@geekytime

In Mocha, we can pass an error into the done() callback to fail the test. This is useful when you're working with a promise-based API that uses .then(onSuccess, onFailure), because you can simply call done(error) in the onFailure call.

Is there a simple way to accomplish this behavior with jasmine.async? Would you consider a pull request that adds that functionality?

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