@@ -1122,6 +1122,7 @@ describe("File upload", function () {
1122
1122
expect ( callback . calledOnce ) . to . be . true ;
1123
1123
sinon . assert . calledWith ( callback , null , uploadSuccessResponseObj ) ;
1124
1124
} ) ;
1125
+
1125
1126
it ( "With pre transformation" , async function ( ) {
1126
1127
const fileOptions = {
1127
1128
...securityParameters ,
@@ -1152,6 +1153,7 @@ describe("File upload", function () {
1152
1153
expect ( callback . calledOnce ) . to . be . true ;
1153
1154
sinon . assert . calledWith ( callback , null , uploadSuccessResponseObj ) ;
1154
1155
} ) ;
1156
+
1155
1157
it ( "With post transformation" , async function ( ) {
1156
1158
const fileOptions = {
1157
1159
...securityParameters ,
@@ -1182,6 +1184,7 @@ describe("File upload", function () {
1182
1184
expect ( callback . calledOnce ) . to . be . true ;
1183
1185
sinon . assert . calledWith ( callback , null , uploadSuccessResponseObj ) ;
1184
1186
} ) ;
1187
+
1185
1188
it ( "Should return error for an invalid transformation" , async function ( ) {
1186
1189
const fileOptions = {
1187
1190
...securityParameters ,
@@ -1206,6 +1209,7 @@ describe("File upload", function () {
1206
1209
expect ( callback . calledOnce ) . to . be . true ;
1207
1210
sinon . assert . calledWith ( callback , errRes , null ) ;
1208
1211
} ) ;
1212
+
1209
1213
it ( "Should return error for an invalid pre transformation" , async function ( ) {
1210
1214
const fileOptions = {
1211
1215
...securityParameters ,
@@ -1230,6 +1234,7 @@ describe("File upload", function () {
1230
1234
expect ( callback . calledOnce ) . to . be . true ;
1231
1235
sinon . assert . calledWith ( callback , errRes , null ) ;
1232
1236
} ) ;
1237
+
1233
1238
it ( "Should return error for an invalid post transformation of type abs" , async function ( ) {
1234
1239
const fileOptions = {
1235
1240
...securityParameters ,
@@ -1254,6 +1259,7 @@ describe("File upload", function () {
1254
1259
expect ( callback . calledOnce ) . to . be . true ;
1255
1260
sinon . assert . calledWith ( callback , errRes , null ) ;
1256
1261
} ) ;
1262
+
1257
1263
it ( "Should return error for an invalid post transformation of type transformation" , async function ( ) {
1258
1264
const fileOptions = {
1259
1265
...securityParameters ,
@@ -1278,6 +1284,7 @@ describe("File upload", function () {
1278
1284
expect ( callback . calledOnce ) . to . be . true ;
1279
1285
sinon . assert . calledWith ( callback , errRes , null ) ;
1280
1286
} ) ;
1287
+
1281
1288
it ( "Should return error for an invalid post transformation if it's not an array" , async function ( ) {
1282
1289
const fileOptions = {
1283
1290
...securityParameters ,
0 commit comments