@@ -148,41 +148,6 @@ describe('HttpClient', () => {
148148 expect ( testReq . request . body ) . toBe ( body ) ;
149149 testReq . flush ( 'hello world' ) ;
150150 } ) ;
151- it ( 'validates all fetch API options are properly handled' , ( done ) => {
152- client
153- . post (
154- '/test' ,
155- { } ,
156- {
157- credentials : 'include' ,
158- cache : 'force-cache' ,
159- priority : 'high' ,
160- mode : 'cors' ,
161- redirect : 'follow' ,
162- referrer : 'www.example.com' ,
163- integrity : 'sha256-abc' ,
164- timeout : 1000 ,
165- keepalive : true ,
166- withCredentials : true ,
167- } ,
168- )
169- . subscribe ( ( ) => {
170- done ( ) ;
171- } ) ;
172- const testReq = backend . expectOne ( '/test' ) ;
173- expect ( testReq . request . credentials ) . toBe ( 'include' ) ;
174- expect ( testReq . request . cache ) . toBe ( 'force-cache' ) ;
175- expect ( testReq . request . priority ) . toBe ( 'high' ) ;
176- expect ( testReq . request . mode ) . toBe ( 'cors' ) ;
177- expect ( testReq . request . redirect ) . toBe ( 'follow' ) ;
178- expect ( testReq . request . referrer ) . toBe ( 'www.example.com' ) ;
179- expect ( testReq . request . integrity ) . toBe ( 'sha256-abc' ) ;
180- expect ( testReq . request . timeout ) . toBe ( 1000 ) ;
181- expect ( testReq . request . keepalive ) . toBe ( true ) ;
182- expect ( testReq . request . withCredentials ) . toBe ( true ) ;
183- expect ( testReq . request . body ) . toEqual ( { } ) ;
184- testReq . flush ( { } ) ;
185- } ) ;
186151 it ( 'with a json body of false' , ( done ) => {
187152 client . post ( '/test' , false , { observe : 'response' , responseType : 'text' } ) . subscribe ( ( res ) => {
188153 expect ( res . ok ) . toBeTruthy ( ) ;
0 commit comments