Skip to content

Commit b0be175

Browse files
committed
Version bump and border test case
1 parent 5e30ba1 commit b0be175

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekit-javascript",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "Javascript SDK for using ImageKit.io in the browser",
55
"main": "dist/imagekit.cjs.js",
66
"module": "dist/imagekit.esm.js",

test/url-generation.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,19 @@ describe("URL generation", function () {
194194

195195
expect(url).equal(`https://ik.imagekit.io/test_url_endpoint/tr:h-300,w-400,ox-10/test_path.jpg?ik-sdk-version=javascript-${pkg.version}`);
196196
});
197+
198+
it('Border', function () {
199+
const url = imagekit.url({
200+
path: "/test_path.jpg",
201+
transformation: [{
202+
"height": "300",
203+
"width": "400",
204+
border: "20_FF0000"
205+
}]
206+
})
207+
208+
expect(url).equal(`https://ik.imagekit.io/test_url_endpoint/tr:h-300,w-400,b-20_FF0000/test_path.jpg?ik-sdk-version=javascript-${pkg.version}`);
209+
});
197210
});
198211

199212

0 commit comments

Comments
 (0)