File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -190,18 +190,6 @@ describe('resource batches', () => {
190190 ) . rejects . toThrow ( Anthropic . NotFoundError ) ;
191191 } ) ;
192192
193- // Prism doesn't support JSONL responses yet
194- test . skip ( 'results' , async ( ) => {
195- const responsePromise = client . beta . messages . batches . results ( 'message_batch_id' ) ;
196- const rawResponse = await responsePromise . asResponse ( ) ;
197- expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
198- const response = await responsePromise ;
199- expect ( response ) . not . toBeInstanceOf ( Response ) ;
200- const dataAndResponse = await responsePromise . withResponse ( ) ;
201- expect ( dataAndResponse . data ) . toBe ( response ) ;
202- expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
203- } ) ;
204-
205193 // Prism doesn't support JSONL responses yet
206194 test . skip ( 'results: request options instead of params are passed correctly' , async ( ) => {
207195 // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
Original file line number Diff line number Diff line change @@ -154,18 +154,6 @@ describe('resource batches', () => {
154154 ) . rejects . toThrow ( Anthropic . NotFoundError ) ;
155155 } ) ;
156156
157- // Prism doesn't support JSONL responses yet
158- test . skip ( 'results' , async ( ) => {
159- const responsePromise = client . messages . batches . results ( 'message_batch_id' ) ;
160- const rawResponse = await responsePromise . asResponse ( ) ;
161- expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
162- const response = await responsePromise ;
163- expect ( response ) . not . toBeInstanceOf ( Response ) ;
164- const dataAndResponse = await responsePromise . withResponse ( ) ;
165- expect ( dataAndResponse . data ) . toBe ( response ) ;
166- expect ( dataAndResponse . response ) . toBe ( rawResponse ) ;
167- } ) ;
168-
169157 // Prism doesn't support JSONL responses yet
170158 test . skip ( 'results: request options instead of params are passed correctly' , async ( ) => {
171159 // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
You can’t perform that action at this time.
0 commit comments