@@ -398,6 +398,7 @@ describe("File upload", function () {
398398
399399 imagekit . upload ( fileOptions , callback ) ;
400400 } ) ;
401+
401402 it ( "With pre transformation" , function ( done ) {
402403 const fileOptions = {
403404 fileName : "test_file_name" ,
@@ -422,6 +423,7 @@ describe("File upload", function () {
422423
423424 imagekit . upload ( fileOptions , callback ) ;
424425 } ) ;
426+
425427 it ( "With post transformation" , function ( done ) {
426428 const fileOptions = {
427429 fileName : "test_file_name" ,
@@ -446,6 +448,7 @@ describe("File upload", function () {
446448
447449 imagekit . upload ( fileOptions , callback ) ;
448450 } ) ;
451+
449452 it ( "Should return error for an invalid transformation" , async function ( ) {
450453 const fileOptions = {
451454 fileName : "test_file_name" ,
@@ -465,6 +468,7 @@ describe("File upload", function () {
465468 expect ( callback . calledOnce ) . to . be . true ;
466469 sinon . assert . calledWith ( callback , errRes , null ) ;
467470 } ) ;
471+
468472 it ( "Should return error for an invalid pre transformation" , async function ( ) {
469473 const fileOptions = {
470474 fileName : "test_file_name" ,
@@ -484,6 +488,7 @@ describe("File upload", function () {
484488 expect ( callback . calledOnce ) . to . be . true ;
485489 sinon . assert . calledWith ( callback , errRes , null ) ;
486490 } ) ;
491+
487492 it ( "Should return error for an invalid post transformation of type abs" , async function ( ) {
488493 const fileOptions = {
489494 fileName : "test_file_name" ,
@@ -503,6 +508,7 @@ describe("File upload", function () {
503508 expect ( callback . calledOnce ) . to . be . true ;
504509 sinon . assert . calledWith ( callback , errRes , null ) ;
505510 } ) ;
511+
506512 it ( "Should return error for an invalid post transformation of type transformation" , async function ( ) {
507513 const fileOptions = {
508514 fileName : "test_file_name" ,
@@ -522,6 +528,7 @@ describe("File upload", function () {
522528 expect ( callback . calledOnce ) . to . be . true ;
523529 sinon . assert . calledWith ( callback , errRes , null ) ;
524530 } ) ;
531+
525532 it ( "Should return error for an invalid post transformation if it's not an array" , async function ( ) {
526533 const fileOptions = {
527534 fileName : "test_file_name" ,
0 commit comments