Skip to content

Commit 5c3d7dd

Browse files
author
FrancescoMauto
committed
[DSC-1786] fix: orejime test
1 parent 2cb93fe commit 5c3d7dd

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

src/app/shared/cookies/browser-orejime.service.spec.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,12 @@ describe('BrowserOrejimeService', () => {
323323
describe('initialize google analytics configuration', () => {
324324
let GOOGLE_ANALYTICS_KEY;
325325
let REGISTRATION_VERIFICATION_ENABLED_KEY;
326+
let FEEDBACK_VERIFICATION_ENABLED_KEY;
326327
let MATOMO_ENABLED;
327328
beforeEach(() => {
328329
GOOGLE_ANALYTICS_KEY = clone((service as any).GOOGLE_ANALYTICS_KEY);
329330
REGISTRATION_VERIFICATION_ENABLED_KEY = clone((service as any).REGISTRATION_VERIFICATION_ENABLED_KEY);
331+
FEEDBACK_VERIFICATION_ENABLED_KEY = clone((service as any).FEEDBACK_VERIFICATION_ENABLED_KEY);
330332
MATOMO_ENABLED = clone((service as any).MATOMO_ENABLED);
331333
spyOn((service as any), 'getUserId$').and.returnValue(of(user.uuid));
332334
translateService.get.and.returnValue(of('loading...'));
@@ -377,6 +379,15 @@ describe('BrowserOrejimeService', () => {
377379
values: ['false'],
378380
}),
379381
)
382+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
383+
.and
384+
.returnValue(
385+
createSuccessfulRemoteDataObject$({
386+
... new ConfigurationProperty(),
387+
name: trackingIdTestValue,
388+
values: ['false'],
389+
}),
390+
)
380391
.withArgs(MATOMO_ENABLED)
381392
.and
382393
.returnValue(
@@ -405,6 +416,15 @@ describe('BrowserOrejimeService', () => {
405416
values: ['false'],
406417
}),
407418
)
419+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
420+
.and
421+
.returnValue(
422+
createSuccessfulRemoteDataObject$({
423+
... new ConfigurationProperty(),
424+
name: trackingIdTestValue,
425+
values: ['false'],
426+
}),
427+
)
408428
.withArgs(MATOMO_ENABLED)
409429
.and
410430
.returnValue(
@@ -432,6 +452,15 @@ describe('BrowserOrejimeService', () => {
432452
values: ['false'],
433453
}),
434454
)
455+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
456+
.and
457+
.returnValue(
458+
createSuccessfulRemoteDataObject$({
459+
... new ConfigurationProperty(),
460+
name: trackingIdTestValue,
461+
values: ['false'],
462+
}),
463+
)
435464
.withArgs(MATOMO_ENABLED)
436465
.and
437466
.returnValue(

0 commit comments

Comments
 (0)