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
Description
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)