@@ -321,18 +321,18 @@ const tests = [
321321 } ,
322322 {
323323 description : 'should resolve correct URL after redirect (GET) #33' ,
324- expected : 'resolved: {"status": 200, url: "http://httpbin .org/anything", ...' ,
325- func : function ( resolve , reject ) { cordova . plugin . http . get ( 'http://httpbingo.org/redirect-to?url=http://httpbin .org/anything' , { } , { } , resolve , reject ) ; } ,
324+ expected : 'resolved: {"status": 200, url: "http://httpbingo .org/anything", ...' ,
325+ func : function ( resolve , reject ) { cordova . plugin . http . get ( 'http://httpbingo.org/redirect-to?url=http://httpbingo .org/anything' , { } , { } , resolve , reject ) ; } ,
326326 validationFunc : function ( driver , result ) {
327327 result . type . should . be . equal ( 'resolved' ) ;
328- result . data . url . should . be . equal ( 'http://httpbin .org/anything' ) ;
328+ result . data . url . should . be . equal ( 'http://httpbingo .org/anything' ) ;
329329 }
330330 } ,
331331 {
332332 description : 'should not follow 302 redirect when following redirects is disabled' ,
333333 expected : 'rejected: {"status": 302, ...' ,
334334 before : function ( resolve , reject ) { cordova . plugin . http . setFollowRedirect ( false ) ; resolve ( ) ; } ,
335- func : function ( resolve , reject ) { cordova . plugin . http . get ( 'http://httpbingo.org/redirect-to?url=http://httpbin .org/anything' , { } , { } , resolve , reject ) ; } ,
335+ func : function ( resolve , reject ) { cordova . plugin . http . get ( 'http://httpbingo.org/redirect-to?url=http://httpbingo .org/anything' , { } , { } , resolve , reject ) ; } ,
336336 validationFunc : function ( driver , result ) {
337337 result . type . should . be . equal ( 'rejected' ) ;
338338 result . data . status . should . be . equal ( 302 ) ;
0 commit comments