Skip to content

Commit 7aa1506

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
code cov
1 parent 3371a9f commit 7aa1506

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/url-generation.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,17 @@ describe("URL generation", function () {
268268
expect(url).equal(`https://ik.imagekit.io/test_url_endpoint/tr:e-contrast/test_path.jpg`);
269269
});
270270

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+
271282
it('All combined', function () {
272283
const url = imagekit.url({
273284
path: "/test_path.jpg",

0 commit comments

Comments
 (0)