mirror of
https://github.com/angular/angular.git
synced 2026-11-30 10:27:51 -05:00
Make the `MockResponse` class used in tests behave more similarly to how real responses work by making the following improvements: - Use an empty `statusText` (`''`) when provided, instead of the default `'OK'` value. This allows better representing opaque responses. - Preserve more properties (`redirected`, `type`, `url`) when cloning a `MockResponse`. PR Close #44723
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT