The underlying TestRequest
object from Angular.
Resolve the request with the given body and options, like TestRequest.flush()
.
Optional
opts: { Optional
headers?: HttpHeaders | { Optional
status?: numberOptional
statusConvenience method to flush an error response.
Optional
body?: null | string | number | boolean | Object | ArrayBuffer | Blob | (null | string | number | boolean | Object)[]Optional
status
A class very similar to Angular's
TestRequest
for use with anAngularContext
. If you are using anAngularContext
, this will trigger change detection automatically after you flush a response, like production behavior.Though it is possible to construct yourself, normally an instance of this class is obtained from
()
.