Skip to content

Commit ee225e2

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
corrected link and formatted code
1 parent fc20052 commit ee225e2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libs/constants/supportedTransforms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const supportedTransforms = {
148148
effectShadow: "e-shadow",
149149

150150
/**
151-
* @link https://docs.imagekit.io/features/image-transformations/image-enhancement-and-color-manipulation.md#gradient-e-gradient
151+
* @link https://docs.imagekit.io/features/image-transformations/image-enhancement-and-color-manipulation#gradient-e-gradient
152152
*/
153153
effectGradient: "e-gradient",
154154

tests/upload.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)