// Expect one request with an authorization header const req = httpTestingController.expectOne( req => req.headers.has('Authorization') );