From 32d23a0d554135489426652388b253d58fd3b0e8 Mon Sep 17 00:00:00 2001 From: ANKUR DWIVEDI Date: Thu, 18 Jan 2024 09:41:55 +0530 Subject: [PATCH] added transformation parameter --- test/imagekit/api_service/file_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/imagekit/api_service/file_test.rb b/test/imagekit/api_service/file_test.rb index f70f261..b792591 100644 --- a/test/imagekit/api_service/file_test.rb +++ b/test/imagekit/api_service/file_test.rb @@ -246,7 +246,7 @@ SUT = file_api_service.new(request_obj) - upload = SUT.upload(file: "./fake_file.jpg", file_name: "my_file_name", transformation: { pre: 'l-text,i-Imagekit,fs-50,l-end', post: [{type: 'transformation', value: 'b-10'}]}) + upload = SUT.upload(file: "./fake_file.jpg", file_name: "my_file_name", transformation: { pre: 'l-text,i-Imagekit,fs-50,l-end', post: [{type: 'transformation', value: 'w-100'}]}) expect(@ac[:payload].to_json).to eq("{\"multipart\":true,\"file\":\"./fake_file.jpg\",\"fileName\":\"my_file_name\",\"transformation\":"{\"pre\":\"l-text,i-Imagekit,fs-50,l-end\",\"post\":[{\"type\":\"transformation\",\"value\":\"w-100\"}]}"}")