Skip to content

Commit 5bac0d8

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
corrected link and formatted code
1 parent c46ef34 commit 5bac0d8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/constants/supportedTransforms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const supportedTransforms: { [key: string]: string } = {
153153
effectShadow: "e-shadow",
154154

155155
/**
156-
* @link https://docs.imagekit.io/features/image-transformations/image-enhancement-and-color-manipulation.md#gradient-e-gradient
156+
* @link https://docs.imagekit.io/features/image-transformations/image-enhancement-and-color-manipulation#gradient-e-gradient
157157
*/
158158
effectGradient: "e-gradient",
159159

test/upload.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,7 @@ describe("File upload", function () {
11221122
expect(callback.calledOnce).to.be.true;
11231123
sinon.assert.calledWith(callback, null, uploadSuccessResponseObj);
11241124
});
1125+
11251126
it("With pre transformation", async function () {
11261127
const fileOptions = {
11271128
...securityParameters,
@@ -1152,6 +1153,7 @@ describe("File upload", function () {
11521153
expect(callback.calledOnce).to.be.true;
11531154
sinon.assert.calledWith(callback, null, uploadSuccessResponseObj);
11541155
});
1156+
11551157
it("With post transformation", async function () {
11561158
const fileOptions = {
11571159
...securityParameters,
@@ -1182,6 +1184,7 @@ describe("File upload", function () {
11821184
expect(callback.calledOnce).to.be.true;
11831185
sinon.assert.calledWith(callback, null, uploadSuccessResponseObj);
11841186
});
1187+
11851188
it("Should return error for an invalid transformation", async function () {
11861189
const fileOptions = {
11871190
...securityParameters,
@@ -1206,6 +1209,7 @@ describe("File upload", function () {
12061209
expect(callback.calledOnce).to.be.true;
12071210
sinon.assert.calledWith(callback, errRes, null);
12081211
});
1212+
12091213
it("Should return error for an invalid pre transformation", async function () {
12101214
const fileOptions = {
12111215
...securityParameters,
@@ -1230,6 +1234,7 @@ describe("File upload", function () {
12301234
expect(callback.calledOnce).to.be.true;
12311235
sinon.assert.calledWith(callback, errRes, null);
12321236
});
1237+
12331238
it("Should return error for an invalid post transformation of type abs", async function () {
12341239
const fileOptions = {
12351240
...securityParameters,
@@ -1254,6 +1259,7 @@ describe("File upload", function () {
12541259
expect(callback.calledOnce).to.be.true;
12551260
sinon.assert.calledWith(callback, errRes, null);
12561261
});
1262+
12571263
it("Should return error for an invalid post transformation of type transformation", async function () {
12581264
const fileOptions = {
12591265
...securityParameters,
@@ -1278,6 +1284,7 @@ describe("File upload", function () {
12781284
expect(callback.calledOnce).to.be.true;
12791285
sinon.assert.calledWith(callback, errRes, null);
12801286
});
1287+
12811288
it("Should return error for an invalid post transformation if it's not an array", async function () {
12821289
const fileOptions = {
12831290
...securityParameters,

0 commit comments

Comments
 (0)