Skip to content

Commit 22e62f3

Browse files
committed
update url analytics tests
1 parent dc438c2 commit 22e62f3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

projects/angular-cld/src/lib/cloudinary-sdk-analytics.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('Tests for sdk versionID on image tag', () => {
7575

7676
it('creates an img without a feature- resulting in 0', () => {
7777
const img = des.children[0].nativeElement as HTMLImageElement;
78-
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKE9NAH0');
78+
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKHZdAH0');
7979
});
8080
});
8181

@@ -109,7 +109,7 @@ describe('Tests for sdk versionID on image tag', () => {
109109

110110
it('creates an img with feature accessibility D', () => {
111111
const img = des.children[0].nativeElement as HTMLImageElement;
112-
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/e_tint:75:black/sample?_a=AKE9NAHD');
112+
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/e_tint:75:black/sample?_a=AKHZdAHD');
113113
});
114114
});
115115

@@ -145,7 +145,7 @@ describe('Tests for sdk versionID on image tag', () => {
145145

146146
it('creates an img with feature responsive A', () => {
147147
const img = des.children[0].nativeElement as HTMLImageElement;
148-
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKE9NAHA');
148+
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKHZdAHA');
149149
});
150150
});
151151
describe('Placeholder with urlAnalytics set to true', async () => {
@@ -176,11 +176,11 @@ describe('Tests for sdk versionID on image tag', () => {
176176
}));
177177
it('placeholder img should encode with B', async () => {
178178
const placeholderimg = placeholder[0].children[0].nativeElement as HTMLImageElement;
179-
expect(placeholderimg.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/e_blur:2000,f_auto,q_1/sample?_a=AKE9NAHB');
179+
expect(placeholderimg.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/e_blur:2000,f_auto,q_1/sample?_a=AKHZdAHB');
180180
});
181181
it('original img should encode with 0', async () => {
182182
const img = des[0].children[0].nativeElement as HTMLImageElement;
183-
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKE9NAH0');
183+
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKHZdAH0');
184184
});
185185
});
186186
describe('Lazy-load with urlAnalytics set to true', async () => {
@@ -211,7 +211,7 @@ describe('Tests for sdk versionID on image tag', () => {
211211
const wait = (ms) => new Promise(res => setTimeout(res, ms));
212212
await wait(300);
213213
const img = des[0].children[0].nativeElement as HTMLImageElement;
214-
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKE9NAHC');
214+
expect(img.attributes.getNamedItem('src').value).toEqual('http://res.cloudinary.com/@@fake_angular_sdk@@/image/upload/sample?_a=AKHZdAHC');
215215
});
216216
});
217217
});

0 commit comments

Comments
 (0)