We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3371a9f commit 7aa1506Copy full SHA for 7aa1506
test/url-generation.js
@@ -268,6 +268,17 @@ describe("URL generation", function () {
268
expect(url).equal(`https://ik.imagekit.io/test_url_endpoint/tr:e-contrast/test_path.jpg`);
269
});
270
271
+ it('transformation with defaultImage', function () {
272
+ const url = imagekit.url({
273
+ path: "/test_path1.jpg",
274
+ transformation: [{
275
+ defaultImage: "/test_path.jpg",
276
+ }]
277
+ })
278
+
279
+ expect(url).equal(`https://ik.imagekit.io/test_url_endpoint/tr:di-test_path.jpg/test_path1.jpg`);
280
+ });
281
282
it('All combined', function () {
283
const url = imagekit.url({
284
path: "/test_path.jpg",
0 commit comments