Skip to content

Commit 2cf3641

Browse files
committed
chore(internal): fix lint
1 parent 1080c70 commit 2cf3641

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

src/resources/beta/messages/batches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class Batches extends APIResource {
178178
*/
179179
async results(
180180
messageBatchId: string,
181-
params: BatchResultsParams | undefined = {},
181+
params: BatchResultsParams | undefined,
182182
options?: Core.RequestOptions,
183183
): Promise<JSONLDecoder<BetaMessageBatchIndividualResponse>>;
184184
async results(

tests/api-resources/beta/messages/batches.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,6 @@ describe('resource batches', () => {
205205
).rejects.toThrow(Anthropic.NotFoundError);
206206
});
207207

208-
// Prism doesn't support JSONL responses yet
209-
test.skip('results', async () => {
210-
const responsePromise = client.beta.messages.batches.results('message_batch_id');
211-
const rawResponse = await responsePromise.asResponse();
212-
expect(rawResponse).toBeInstanceOf(Response);
213-
const response = await responsePromise;
214-
expect(response).not.toBeInstanceOf(Response);
215-
const dataAndResponse = await responsePromise.withResponse();
216-
expect(dataAndResponse.data).toBe(response);
217-
expect(dataAndResponse.response).toBe(rawResponse);
218-
});
219-
220208
// Prism doesn't support JSONL responses yet
221209
test.skip('results: request options and params are passed correctly', async () => {
222210
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error

tests/api-resources/messages/batches.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,4 @@ describe('resource batches', () => {
168168
client.messages.batches.cancel('message_batch_id', { path: '/_stainless_unknown_path' }),
169169
).rejects.toThrow(Anthropic.NotFoundError);
170170
});
171-
172-
// Prism doesn't support JSONL responses yet
173-
test.skip('results', async () => {
174-
const responsePromise = client.messages.batches.results('message_batch_id');
175-
const rawResponse = await responsePromise.asResponse();
176-
expect(rawResponse).toBeInstanceOf(Response);
177-
const response = await responsePromise;
178-
expect(response).not.toBeInstanceOf(Response);
179-
const dataAndResponse = await responsePromise.withResponse();
180-
expect(dataAndResponse.data).toBe(response);
181-
expect(dataAndResponse.response).toBe(rawResponse);
182-
});
183171
});

0 commit comments

Comments
 (0)