@@ -774,9 +774,8 @@ describe('proxy option', () => {
774
774
775
775
describe ( 'target' , ( ) => {
776
776
it ( 'respects a proxy option when a request path is matched' , async ( ) => {
777
- const response = await req . get ( '/my-path' ) ;
777
+ await req . get ( '/my-path' ) ;
778
778
779
- expect ( response . statusCode ) . toBe ( 504 ) ;
780
779
expect ( customLogProvider . error ) . toHaveBeenCalledTimes ( 1 ) ;
781
780
} ) ;
782
781
} ) ;
@@ -845,9 +844,8 @@ describe('proxy option', () => {
845
844
846
845
describe ( 'target' , ( ) => {
847
846
it ( 'respects a proxy option when a request path is matched' , async ( ) => {
848
- const response = await req . get ( '/my-path' ) ;
847
+ await req . get ( '/my-path' ) ;
849
848
850
- expect ( response . statusCode ) . toBe ( 504 ) ;
851
849
expect ( customLogProvider . error ) . toHaveBeenCalledTimes ( 0 ) ;
852
850
} ) ;
853
851
} ) ;
@@ -918,9 +916,8 @@ describe('proxy option', () => {
918
916
919
917
describe ( 'target' , ( ) => {
920
918
it ( 'respects a proxy option when a request path is matched' , async ( ) => {
921
- const resposne = await req . get ( '/my-path' ) ;
919
+ await req . get ( '/my-path' ) ;
922
920
923
- expect ( resposne . statusCode ) . toBe ( 504 ) ;
924
921
expect ( customLogProvider . error ) . toHaveBeenCalledTimes ( 1 ) ;
925
922
} ) ;
926
923
} ) ;
@@ -974,8 +971,6 @@ describe('proxy option', () => {
974
971
} ) ;
975
972
} ) ;
976
973
977
- await listenProxyServers ( ) ;
978
-
979
974
req = request ( server . app ) ;
980
975
} ) ;
981
976
@@ -985,17 +980,12 @@ describe('proxy option', () => {
985
980
resolve ( ) ;
986
981
} ) ;
987
982
} ) ;
988
-
989
- await closeProxyServers ( ) ;
990
983
} ) ;
991
984
992
985
describe ( 'target' , ( ) => {
993
986
it ( 'respects a proxy option when a request path is matched' , async ( ) => {
994
- const response = await req . get ( '/my-path' ) ;
995
-
996
- console . log ( response ) ;
987
+ await req . get ( '/my-path' ) ;
997
988
998
- expect ( response . statusCode ) . toBe ( 504 ) ;
999
989
expect ( customLogProvider . error ) . toHaveBeenCalledTimes ( 0 ) ;
1000
990
} ) ;
1001
991
} ) ;
0 commit comments