Skip to content

Commit 2a2da58

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
added test case for signed url without expireSeconds
1 parent 63a731c commit 2a2da58

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

imagekit_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@ func TestUrl(t *testing.T) {
109109
},
110110
url: "https://ik.imagekit.io/test/default-image.jpg?tr=h-300%2Cw-300&ik-t=1653775928&ik-s=55f319d3a7db76e652545599a57af3dd94e32e24",
111111
},
112+
{
113+
name: "signed-url-without-ExpireSeconds",
114+
params: ikurl.UrlParam{
115+
Path: "default-image.jpg",
116+
Signed: true,
117+
Transformations: []map[string]any{
118+
{
119+
"height": 300,
120+
"width": 300,
121+
},
122+
},
123+
},
124+
url: "https://ik.imagekit.io/test/tr:h-300,w-300/default-image.jpg?ik-s=355f6c8a91031847828169116fd1d1db6e2aa8c7",
125+
},
112126
{
113127
name: "src-with-transformation",
114128
params: ikurl.UrlParam{

0 commit comments

Comments
 (0)