Skip to content

Commit 08b53b6

Browse files
author
FrancescoMauto
committed
[DSC-1786] [DSC-1786] fix: orejime test
1 parent 7d41eea commit 08b53b6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,12 @@ describe('BrowserKlaroService', () => {
316316
describe('initialize google analytics configuration', () => {
317317
let GOOGLE_ANALYTICS_KEY;
318318
let REGISTRATION_VERIFICATION_ENABLED_KEY;
319+
let FEEDBACK_VERIFICATION_ENABLED_KEY;
319320
let MATOMO_ENABLED;
320321
beforeEach(() => {
321322
GOOGLE_ANALYTICS_KEY = clone((service as any).GOOGLE_ANALYTICS_KEY);
322323
REGISTRATION_VERIFICATION_ENABLED_KEY = clone((service as any).REGISTRATION_VERIFICATION_ENABLED_KEY);
324+
FEEDBACK_VERIFICATION_ENABLED_KEY = clone((service as any).FEEDBACK_VERIFICATION_ENABLED_KEY);
323325
MATOMO_ENABLED = clone((service as any).MATOMO_ENABLED);
324326
spyOn((service as any), 'getUser$').and.returnValue(observableOf(user));
325327
translateService.get.and.returnValue(observableOf('loading...'));
@@ -370,6 +372,15 @@ describe('BrowserKlaroService', () => {
370372
values: ['false'],
371373
}),
372374
)
375+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
376+
.and
377+
.returnValue(
378+
createSuccessfulRemoteDataObject$({
379+
... new ConfigurationProperty(),
380+
name: trackingIdTestValue,
381+
values: ['false'],
382+
}),
383+
)
373384
.withArgs(MATOMO_ENABLED)
374385
.and
375386
.returnValue(
@@ -398,6 +409,15 @@ describe('BrowserKlaroService', () => {
398409
values: ['false'],
399410
}),
400411
)
412+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
413+
.and
414+
.returnValue(
415+
createSuccessfulRemoteDataObject$({
416+
... new ConfigurationProperty(),
417+
name: trackingIdTestValue,
418+
values: ['false'],
419+
}),
420+
)
401421
.withArgs(MATOMO_ENABLED)
402422
.and
403423
.returnValue(
@@ -425,6 +445,15 @@ describe('BrowserKlaroService', () => {
425445
values: ['false'],
426446
}),
427447
)
448+
.withArgs(FEEDBACK_VERIFICATION_ENABLED_KEY)
449+
.and
450+
.returnValue(
451+
createSuccessfulRemoteDataObject$({
452+
... new ConfigurationProperty(),
453+
name: trackingIdTestValue,
454+
values: ['false'],
455+
}),
456+
)
428457
.withArgs(MATOMO_ENABLED)
429458
.and
430459
.returnValue(

0 commit comments

Comments
 (0)