angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

fix: simulated HTTP errors now delayed as expected #182

Closed wardbell closed 6 years ago

wardbell commented 6 years ago

Fixes bug in which a simulated HTTP error did NOT honor the prescribed latency delay. New makeResponseDelay() function cures that. Added tests for this.

Library no longer uses RxJS delay() which may make userland tests easier because Angular TestBed "hates" RxJS delay() (it uses interval()).

Also closes #180.

When this PR is merged, can publish the new version to NPM as release 0.5.4.

wardbell commented 6 years ago

Piggy backed fix to issue #180