This convenience function is similar to HttpTestingController.expectOne(), with extra features. The returned request object will automatically trigger change detection when you flush a response, just like in production.
This function is opinionated in that you must specify all aspects of the request to match. E.g. if the request specifies headers, you must also specify them in the arguments to this method.
This function only works when you are using an AngularContext.
This convenience function is similar to
HttpTestingController.expectOne()
, with extra features. The returned request object will automatically trigger change detection when you flush a response, just like in production.This function is opinionated in that you must specify all aspects of the request to match. E.g. if the request specifies headers, you must also specify them in the arguments to this method.
This function only works when you are using an
AngularContext
.