Skip to content

Commit a18331d

Browse files
committed
refactor(tests): update URL generation test to include new aiEdit transformation parameter
1 parent cc1a4c0 commit a18331d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/url-generation/basic.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,7 @@ describe('URL generation', function () {
12841284
aiVariation: true,
12851285
aiDropShadow: true,
12861286
aiChangeBackground: 'prompt-car',
1287+
aiEdit: 'prompt-make it vintage',
12871288
aiRemoveBackground: true,
12881289
contrastStretch: true,
12891290
shadow: 'bl-15_st-40_x-10_y-N5',
@@ -1298,7 +1299,7 @@ describe('URL generation', function () {
12981299
});
12991300

13001301
expect(url).toBe(
1301-
`https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400,ar-4-3,q-40,c-force,cm-extract,fo-left,f-jpeg,r-50,bg-A94D34,b-5-A94D34,rt-90,bl-10,n-some_name,pr-true,lo-true,t-5,md-true,cp-true,di-folder@@file.jpg,dpr-3,x-10,y-20,xc-30,yc-40,fl-h,o-0.8,z-2,vc-h264,ac-aac,so-5,eo-15,du-10,sr-1440_1080,e-grayscale,e-upscale,e-retouch,e-genvar,e-dropshadow,e-changebg-prompt-car,e-bgremove,e-contrast,e-shadow-bl-15_st-40_x-10_y-N5,e-sharpen-10,e-usm-2-2-0.8-0.024,e-gradient-from-red_to-white,orig-true,pg-2_4,h-200,w-300,l-image,i-logo.png,l-end`,
1302+
`https://ik.imagekit.io/test_url_endpoint/test_path.jpg?tr=h-300,w-400,ar-4-3,q-40,c-force,cm-extract,fo-left,f-jpeg,r-50,bg-A94D34,b-5-A94D34,rt-90,bl-10,n-some_name,pr-true,lo-true,t-5,md-true,cp-true,di-folder@@file.jpg,dpr-3,x-10,y-20,xc-30,yc-40,fl-h,o-0.8,z-2,vc-h264,ac-aac,so-5,eo-15,du-10,sr-1440_1080,e-grayscale,e-upscale,e-retouch,e-genvar,e-dropshadow,e-changebg-prompt-car,e-edit-prompt-make it vintage,e-bgremove,e-contrast,e-shadow-bl-15_st-40_x-10_y-N5,e-sharpen-10,e-usm-2-2-0.8-0.024,e-gradient-from-red_to-white,orig-true,pg-2_4,h-200,w-300,l-image,i-logo.png,l-end`,
13021303
);
13031304
});
13041305
});

0 commit comments

Comments
 (0)