@@ -59,18 +59,33 @@ describe("URL generation", function () {
5959 expect ( url ) . includes ( `ik-s=` ) ;
6060 } ) ;
6161
62- it ( 'Signed URL with expireSeconds and é in url ' , function ( ) {
62+ it ( 'Signed URL with é in filename ' , function ( ) {
6363 const url = imagekit . url ( {
6464 path : "/test_é_path_alt.jpg" ,
6565 signed : true ,
66- expireSeconds : 100
6766 } ) ;
67+ expect ( url ) . equal ( `https://ik.imagekit.io/test_url_endpoint/test_é_path_alt.jpg?ik-s=09a329f06a5106a8b9c43de8fb6a64948fff7c59` ) ;
68+ } ) ;
6869
69- expect ( url ) . includes ( `https://ik.imagekit.io/test_url_endpoint/test_é_path_alt.jpg` ) ;
70- expect ( url ) . includes ( `ik-s=` ) ;
71- expect ( url ) . includes ( `ik-t=` ) ;
70+ it ( 'Signed URL with é in filename and path' , function ( ) {
71+ const url = imagekit . url ( {
72+ path : "/aéb/test_é_path_alt.jpg" ,
73+ signed : true ,
74+ } ) ;
75+ expect ( url ) . equal ( `https://ik.imagekit.io/test_url_endpoint/aéb/test_é_path_alt.jpg?ik-s=fca91582138ac65694425d52f0710b7ae2c3d7cf` ) ;
7276 } ) ;
7377
78+ it ( 'Signed URL with é in filename, path and query' , function ( ) {
79+ const url = imagekit . url ( {
80+ path : "/aéb/test_é_path_alt.jpg" ,
81+ signed : true ,
82+ transformation : [ { raw : "l-text,i-Imagekité,fs-50,l-end" } ]
83+ } ) ;
84+ console . log ( { url} )
85+ expect ( url ) . equal ( `https://ik.imagekit.io/test_url_endpoint/tr:l-text,i-Imagekité,fs-50,l-end/aéb/test_é_path_alt.jpg?ik-s=38539311889a0721b46ebe30b5f297773d01d960` ) ;
86+ } ) ;
87+
88+
7489 it ( 'should generate the correct url with path param' , function ( ) {
7590 const url = imagekit . url ( {
7691 path : "/test_path.jpg" ,
0 commit comments