Skip to content

Commit 6003b2c

Browse files
committed
update snapshots
1 parent 2f843a2 commit 6003b2c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/__snapshots__/index.spec.ts.snap

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,11 @@ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): C
560560
resolve(result.body);
561561
}
562562
} catch (error) {
563-
reject(error);
563+
if (error instanceof Error && error.name === 'AbortError') {
564+
return
565+
} else {
566+
reject(error)
567+
}
564568
}
565569
});
566570
};
@@ -3683,7 +3687,11 @@ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): C
36833687
resolve(result.body);
36843688
}
36853689
} catch (error) {
3686-
reject(error);
3690+
if (error instanceof Error && error.name === 'AbortError') {
3691+
return
3692+
} else {
3693+
reject(error)
3694+
}
36873695
}
36883696
});
36893697
};

0 commit comments

Comments
 (0)