File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
tests/api-resources/files Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 42
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-eab9713fd85da68b41e881dfd9cd71f654e8620132da2023bab7dd01e5f7852e .yml
3- openapi_spec_hash : b5037b26fbe7360c6bfaf9947a65bb85
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-911102f2eaf3be4b34381f6ba089330bed099bb72eb93667ce2f6e72b5934c8c .yml
3+ openapi_spec_hash : 637ad417a580137914441bd790b04cc2
44config_hash : 70f9408b8d1dfbcf262a20d6eed50e1c
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export class Files extends APIResource {
175175 * @example
176176 * ```ts
177177 * const response = await client.files.upload({
178- * file: 'https://www.example.com/path/to-image.jpg ',
178+ * file: 'file ',
179179 * fileName: 'fileName',
180180 * });
181181 * ```
Original file line number Diff line number Diff line change @@ -153,10 +153,7 @@ describe('resource files', () => {
153153
154154 // Prism tests are disabled
155155 test . skip ( 'upload: only required params' , async ( ) => {
156- const responsePromise = client . files . upload ( {
157- file : 'https://www.example.com/path/to-image.jpg' ,
158- fileName : 'fileName' ,
159- } ) ;
156+ const responsePromise = client . files . upload ( { file : 'file' , fileName : 'fileName' } ) ;
160157 const rawResponse = await responsePromise . asResponse ( ) ;
161158 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
162159 const response = await responsePromise ;
@@ -169,7 +166,7 @@ describe('resource files', () => {
169166 // Prism tests are disabled
170167 test . skip ( 'upload: required and optional params' , async ( ) => {
171168 const response = await client . files . upload ( {
172- file : 'https://www.example.com/path/to-image.jpg ' ,
169+ file : 'file ' ,
173170 fileName : 'fileName' ,
174171 token : 'token' ,
175172 checks : '"request.folder" : "marketing/"\n' ,
You can’t perform that action at this time.
0 commit comments