@@ -891,7 +891,6 @@ describe('The Croct plug', () => {
891
891
892
892
await expect ( croct . fetch ( slotId , options ) ) . resolves . toEqual ( {
893
893
content : content ,
894
- payload : content ,
895
894
} ) ;
896
895
897
896
expect ( fetch ) . toHaveBeenLastCalledWith ( 'foo' , options ) ;
@@ -954,7 +953,6 @@ describe('The Croct plug', () => {
954
953
955
954
await expect ( croct . fetch ( slotId , options ) ) . resolves . toEqual ( {
956
955
content : content ,
957
- payload : content ,
958
956
} ) ;
959
957
960
958
expect ( fetch ) . toHaveBeenLastCalledWith ( 'foo' , {
@@ -986,7 +984,6 @@ describe('The Croct plug', () => {
986
984
987
985
await expect ( croct . fetch ( slotId , options ) ) . resolves . toEqual ( {
988
986
content : content ,
989
- payload : content ,
990
987
} ) ;
991
988
992
989
expect ( fetch ) . toHaveBeenLastCalledWith ( 'foo' , options ) ;
@@ -1040,16 +1037,10 @@ describe('The Croct plug', () => {
1040
1037
1041
1038
await expect ( croct . fetch ( slotId , options ) ) . resolves . toEqual ( {
1042
1039
content : content ,
1043
- payload : content ,
1044
1040
} ) ;
1045
1041
1046
1042
expect ( eapFetch ) . toHaveBeenLastCalledWith ( 'foo' , options ) ;
1047
1043
expect ( fetch ) . toHaveBeenLastCalledWith ( 'foo' , options ) ;
1048
-
1049
- expect ( logger . warn ) . toHaveBeenCalledWith ( expect . stringContaining (
1050
- 'Accessing the "payload" property of the fetch response is deprecated and '
1051
- + 'will be removed in a future version. Use the "content" property instead.' ,
1052
- ) ) ;
1053
1044
} ) ;
1054
1045
1055
1046
it ( 'should fail to fetch a slot content if unplugged' , ( ) => {
0 commit comments