@@ -3,7 +3,7 @@ import CookieConsentManager from '../../src/cookieConsentManager';
33describe ( 'CookieConsentManager' , ( ) => {
44 describe ( '#constructor' , ( ) => {
55 it ( 'should default flags to false when not provided' , ( ) => {
6- const cookieConsentManager = new CookieConsentManager ( ) ;
6+ const cookieConsentManager = new CookieConsentManager ( { noFunctional : undefined , noTargeting : undefined } ) ;
77
88 expect ( cookieConsentManager . getNoFunctional ( ) ) . toBe ( false ) ;
99 expect ( cookieConsentManager . getNoTargeting ( ) ) . toBe ( false ) ;
@@ -29,15 +29,15 @@ describe('CookieConsentManager', () => {
2929
3030 describe ( '#getNoFunctional' , ( ) => {
3131 it ( 'should return the noFunctional flag value' , ( ) => {
32- const cookieConsentManager = new CookieConsentManager ( { noFunctional : true } ) ;
32+ const cookieConsentManager = new CookieConsentManager ( { noFunctional : true , noTargeting : undefined } ) ;
3333
3434 expect ( cookieConsentManager . getNoFunctional ( ) ) . toBe ( true ) ;
3535 } ) ;
3636 } ) ;
3737
3838 describe ( '#getNoTargeting' , ( ) => {
3939 it ( 'should return the noTargeting flag value' , ( ) => {
40- const cookieConsentManager = new CookieConsentManager ( { noTargeting : true } ) ;
40+ const cookieConsentManager = new CookieConsentManager ( { noTargeting : true , noFunctional : undefined } ) ;
4141
4242 expect ( cookieConsentManager . getNoTargeting ( ) ) . toBe ( true ) ;
4343 } ) ;
0 commit comments