File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -1046,25 +1046,6 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
1046
1046
} ) ;
1047
1047
1048
1048
it ( "bubbles up AbortError if the request is aborted" , ( ) => {
1049
- // AbortSignal and AbortController do not exist on
1050
- // Node < 15. The main parts of their API have been
1051
- // reproduced in the mocks below.
1052
- class AbortSignal {
1053
- abort = ( ) => {
1054
- const e = new Error ( "" ) ;
1055
- e . name = "AbortError" ;
1056
- throw e ;
1057
- } ;
1058
-
1059
- addEventListener = ( ) => { } ;
1060
- }
1061
-
1062
- class AbortController {
1063
- abort = ( ) => {
1064
- this . signal . abort ( ) ;
1065
- } ;
1066
- signal = new AbortSignal ( ) ;
1067
- }
1068
1049
const abortController = new AbortController ( ) ;
1069
1050
const mock = fetchMock . sandbox ( ) . post (
1070
1051
"https://api.github.com/repos/octokit-fixture-org/release-assets/releases/tags/v1.0.0" ,
You can’t perform that action at this time.
0 commit comments