@@ -249,8 +249,8 @@ describe('request methods', () => {
249249 expect ( ( e as VertexAIError ) . code ) . to . equal (
250250 VertexAIErrorCode . FETCH_ERROR
251251 ) ;
252- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
253- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
252+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
253+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
254254 'AbortError'
255255 ) ;
256256 expect ( ( e as VertexAIError ) . message ) . to . include ( '500 AbortError' ) ;
@@ -276,8 +276,8 @@ describe('request methods', () => {
276276 expect ( ( e as VertexAIError ) . code ) . to . equal (
277277 VertexAIErrorCode . FETCH_ERROR
278278 ) ;
279- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
280- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
279+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
280+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
281281 'Server Error'
282282 ) ;
283283 expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
@@ -303,8 +303,8 @@ describe('request methods', () => {
303303 expect ( ( e as VertexAIError ) . code ) . to . equal (
304304 VertexAIErrorCode . FETCH_ERROR
305305 ) ;
306- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
307- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
306+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
307+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
308308 'Server Error'
309309 ) ;
310310 expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
@@ -343,8 +343,8 @@ describe('request methods', () => {
343343 expect ( ( e as VertexAIError ) . code ) . to . equal (
344344 VertexAIErrorCode . FETCH_ERROR
345345 ) ;
346- expect ( ( e as VertexAIError ) . httpErrorDetails ?. status ) . to . equal ( 500 ) ;
347- expect ( ( e as VertexAIError ) . httpErrorDetails ?. statusText ) . to . equal (
346+ expect ( ( e as VertexAIError ) . customErrorData ?. status ) . to . equal ( 500 ) ;
347+ expect ( ( e as VertexAIError ) . customErrorData ?. statusText ) . to . equal (
348348 'Server Error'
349349 ) ;
350350 expect ( ( e as VertexAIError ) . message ) . to . include ( '500 Server Error' ) ;
0 commit comments