Skip to content

Commit b52277c

Browse files
committed
fix: removing hardcoded version number from url
1 parent 095b7c9 commit b52277c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/sdk-tests/ik-image.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe("IkImageComponent", () => {
105105
it("Parameters passed to queryParameters should be present in URL if src with existing query is used", () => {
106106
component.setUrl('https://example.com/ab.png?foo=bar&baz=nax', null, null, null, null, null, {version:5, name: 'check'});
107107
expect(component.url).toContain('&version=5&name=check');
108-
expect(component.url).toBe('https://example.com/ab.png?foo=bar&baz=nax&ik-sdk-version=angular-0.0.1&version=5&name=check');
108+
expect(component.url).toBe(`https://example.com/ab.png?foo=bar&baz=nax&ik-sdk-version=${version}&version=5&name=check`);
109109
});
110110

111111
it("Parameters passed to queryParameters should be present in URL if path is used", () => {

0 commit comments

Comments
 (0)