@@ -28,7 +28,7 @@ describe('resource files', () => {
2828 before_id : 'before_id' ,
2929 limit : 1 ,
3030 scope_id : 'scope_id' ,
31- betas : [ 'string ' ] ,
31+ betas : [ 'message-batches-2024-09-24 ' ] ,
3232 } ,
3333 { path : '/_stainless_unknown_path' } ,
3434 ) ,
@@ -49,14 +49,22 @@ describe('resource files', () => {
4949 test ( 'delete: request options and params are passed correctly' , async ( ) => {
5050 // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5151 await expect (
52- client . beta . files . delete ( 'file_id' , { betas : [ 'string' ] } , { path : '/_stainless_unknown_path' } ) ,
52+ client . beta . files . delete (
53+ 'file_id' ,
54+ { betas : [ 'message-batches-2024-09-24' ] } ,
55+ { path : '/_stainless_unknown_path' } ,
56+ ) ,
5357 ) . rejects . toThrow ( Anthropic . NotFoundError ) ;
5458 } ) ;
5559
5660 test ( 'download: request options and params are passed correctly' , async ( ) => {
5761 // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5862 await expect (
59- client . beta . files . download ( 'file_id' , { betas : [ 'string' ] } , { path : '/_stainless_unknown_path' } ) ,
63+ client . beta . files . download (
64+ 'file_id' ,
65+ { betas : [ 'message-batches-2024-09-24' ] } ,
66+ { path : '/_stainless_unknown_path' } ,
67+ ) ,
6068 ) . rejects . toThrow ( Anthropic . NotFoundError ) ;
6169 } ) ;
6270
@@ -76,7 +84,7 @@ describe('resource files', () => {
7684 await expect (
7785 client . beta . files . retrieveMetadata (
7886 'file_id' ,
79- { betas : [ 'string ' ] } ,
87+ { betas : [ 'message-batches-2024-09-24 ' ] } ,
8088 { path : '/_stainless_unknown_path' } ,
8189 ) ,
8290 ) . rejects . toThrow ( Anthropic . NotFoundError ) ;
@@ -98,7 +106,7 @@ describe('resource files', () => {
98106 test ( 'upload: required and optional params' , async ( ) => {
99107 const response = await client . beta . files . upload ( {
100108 file : await toFile ( Buffer . from ( 'Example data' ) , 'README.md' ) ,
101- betas : [ 'string ' ] ,
109+ betas : [ 'message-batches-2024-09-24 ' ] ,
102110 } ) ;
103111 } ) ;
104112} ) ;
0 commit comments