@@ -58,7 +58,7 @@ describe("Media library APIs", function () {
5858 imagekit . bulkAddTags ( null , tags , function ( err , response ) {
5959 expect ( err ) . to . deep . equal ( {
6060 message : "Invalid value for fileIds" ,
61- help : "fileIds should be an string array of fileId of the files to delete . The array should have atleast one fileId."
61+ help : "fileIds should be an array of fileId of the files. The array should have atleast one fileId."
6262 } )
6363 done ( ) ;
6464 } ) ;
@@ -69,7 +69,7 @@ describe("Media library APIs", function () {
6969 imagekit . bulkRemoveTags ( null , tags , function ( err , response ) {
7070 expect ( err ) . to . deep . equal ( {
7171 message : "Invalid value for fileIds" ,
72- help : "fileIds should be an string array of fileId of the files to delete . The array should have atleast one fileId."
72+ help : "fileIds should be an array of fileId of the files. The array should have atleast one fileId."
7373 } )
7474 done ( ) ;
7575 } ) ;
@@ -90,8 +90,8 @@ describe("Media library APIs", function () {
9090 sourceFilePath = "/file.jpg" ;
9191 imagekit . copyFile ( sourceFilePath , null , function ( err , response ) {
9292 expect ( err ) . to . deep . equal ( {
93- messages : "Invalid folder path for this request " ,
94- help : "Path should be a string like '/path/to/folder'"
93+ messages : "Invalid destinationPath value " ,
94+ help : "It should be a string like '/path/to/folder'"
9595 } )
9696 done ( ) ;
9797 } ) ;
@@ -101,8 +101,8 @@ describe("Media library APIs", function () {
101101 destinationPath = "/" ;
102102 imagekit . copyFile ( null , destinationPath , function ( err , response ) {
103103 expect ( err ) . to . deep . equal ( {
104- messages : "Invalid file path for this request " ,
105- help : "Path should be a string like /path/to/file.jpg'"
104+ messages : "Invalid sourceFilePath value " ,
105+ help : "It should be a string like /path/to/file.jpg'"
106106 } )
107107 done ( ) ;
108108 } ) ;
@@ -112,8 +112,8 @@ describe("Media library APIs", function () {
112112 sourceFilePath = "/file.jpg" ;
113113 imagekit . moveFile ( sourceFilePath , null , function ( err , response ) {
114114 expect ( err ) . to . deep . equal ( {
115- messages : "Invalid folder path for this request " ,
116- help : "Path should be a string like '/path/to/folder'"
115+ messages : "Invalid destinationPath value " ,
116+ help : "It should be a string like '/path/to/folder'"
117117 } )
118118 done ( ) ;
119119 } ) ;
@@ -123,8 +123,8 @@ describe("Media library APIs", function () {
123123 destinationPath = "/" ;
124124 imagekit . moveFile ( null , destinationPath , function ( err , response ) {
125125 expect ( err ) . to . deep . equal ( {
126- messages : "Invalid file path for this request " ,
127- help : "Path should be a string like /path/to/file.jpg'"
126+ messages : "Invalid sourceFilePath value " ,
127+ help : "It should be a string like /path/to/file.jpg'"
128128 } )
129129 done ( ) ;
130130 } ) ;
@@ -134,8 +134,8 @@ describe("Media library APIs", function () {
134134 sourceFolderPath = "/" ;
135135 imagekit . copyFolder ( sourceFolderPath , null , function ( err , response ) {
136136 expect ( err ) . to . deep . equal ( {
137- messages : "Invalid folder path for this request " ,
138- help : "Path should be a string like '/path/to/folder'"
137+ messages : "Invalid destinationPath value " ,
138+ help : "It should be a string like '/path/to/folder'"
139139 } )
140140 done ( ) ;
141141 } ) ;
@@ -145,8 +145,8 @@ describe("Media library APIs", function () {
145145 sourceFolderPath = "/" ;
146146 imagekit . moveFolder ( sourceFolderPath , null , function ( err , response ) {
147147 expect ( err ) . to . deep . equal ( {
148- messages : "Invalid folder path for this request " ,
149- help : "Path should be a string like '/path/to/folder'"
148+ messages : "Invalid destinationPath value " ,
149+ help : "It should be a string like '/path/to/folder'"
150150 } )
151151 done ( ) ;
152152 } ) ;
@@ -157,7 +157,7 @@ describe("Media library APIs", function () {
157157 parentFolderPath = "" ;
158158 imagekit . createFolder ( folderName , parentFolderPath , function ( err , response ) {
159159 expect ( err ) . to . deep . equal ( {
160- messages : "Invalid folder name for this request " ,
160+ messages : "Invalid folderName value " ,
161161 help : ""
162162 } )
163163 done ( ) ;
@@ -169,8 +169,8 @@ describe("Media library APIs", function () {
169169 parentFolderPath = "" ;
170170 imagekit . createFolder ( folderName , parentFolderPath , function ( err , response ) {
171171 expect ( err ) . to . deep . equal ( {
172- messages : "Invalid folder path for this request " ,
173- help : "Path should be a string like '/path/to/folder'"
172+ messages : "Invalid parentFolderPath value " ,
173+ help : "It should be a string like '/path/to/folder'"
174174 } )
175175 done ( ) ;
176176 } ) ;
@@ -179,8 +179,8 @@ describe("Media library APIs", function () {
179179 it ( 'Delete folder invalid path' , function ( done ) {
180180 imagekit . deleteFolder ( null , function ( err , response ) {
181181 expect ( err ) . to . deep . equal ( {
182- messages : "Invalid folder path for this request " ,
183- help : "Path should be a string like '/path/to/folder'"
182+ messages : "Invalid folderPath value " ,
183+ help : "It should be a string like '/path/to/folder'"
184184 } )
185185 done ( ) ;
186186 } ) ;
@@ -351,7 +351,7 @@ describe("Media library APIs", function () {
351351 imagekit . bulkDeleteFiles ( null , function ( err , response ) {
352352 expect ( err ) . to . deep . equal ( {
353353 message : "Invalid value for fileIds" ,
354- help : "fileIds should be an string array of fileId of the files to delete . The array should have atleast one fileId."
354+ help : "fileIds should be an array of fileId of the files. The array should have atleast one fileId."
355355 } )
356356 done ( ) ;
357357 } ) ;
@@ -376,7 +376,7 @@ describe("Media library APIs", function () {
376376 imagekit . getBulkJobStatus ( null , function ( err , response ) {
377377 expect ( err ) . to . deep . equal ( {
378378 help : "" ,
379- message : "Missing Job ID parameter for this request "
379+ message : "Missing jobId parameter"
380380 } )
381381 done ( ) ;
382382 } ) ;
0 commit comments