@@ -9,7 +9,7 @@ describe("URL generation", function () {
99
1010 var imagekit = new ImageKit ( initializationParams ) ;
1111
12- it ( 'should return an empty string when neither path nor src is provided' , function ( ) {
12+ it ( 'should return an empty string when src is not provided' , function ( ) {
1313 const url = imagekit . url ( { } ) ;
1414
1515 expect ( url ) . equal ( "" ) ;
@@ -21,7 +21,7 @@ describe("URL generation", function () {
2121 expect ( url ) . equal ( "https://ik.imagekit.io/test_url_endpoint/" ) ;
2222 } ) ;
2323
24- it ( 'should generate a valid URL when a path is provided without transformation' , function ( ) {
24+ it ( 'should generate a valid URL when src is provided without transformation' , function ( ) {
2525 const url = imagekit . url ( {
2626 src : "/test_path.jpg"
2727 } ) ;
@@ -78,7 +78,7 @@ describe("URL generation", function () {
7878 expect ( url ) . equal ( `https://ik.imagekit.io/test_url_endpoint/tr:h-300,w-400/test_path.jpg` ) ;
7979 } ) ;
8080
81- it ( 'should generate the correct URL with a valid path and transformation' , function ( ) {
81+ it ( 'should generate the correct URL with a valid src and transformation' , function ( ) {
8282 const url = imagekit . url ( {
8383 src : "/test_path.jpg" ,
8484 transformation : [ {
@@ -117,7 +117,7 @@ describe("URL generation", function () {
117117
118118 } ) ;
119119
120- it ( 'should generate the correct URL with transformationPosition as query parameter when path is provided' , function ( ) {
120+ it ( 'should generate the correct URL with transformationPosition as query parameter when src is provided' , function ( ) {
121121 const url = imagekit . url ( {
122122 src : "/test_path.jpg" ,
123123 transformationPosition : "query" ,
0 commit comments