Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$q promises does not handle synchronious use correctly #6087

Closed
@lee-elenbaas

Description

@lee-elenbaas

If you use promises but resolve them synchronously then the promises does not handle notification and error callbacks correctly
see plunker for sample of this error: http://plnkr.co/edit/Vph0Wt?p=preview

i stumbled across this error when making a mock for something that in reality works asynchronously - but for the tests, sync mock was enough (if only this error was not present)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions