@@ -21,7 +21,9 @@ describe('user sync', function () {
21
21
const thisConfig = Object . assign ( { } , defaultUserSyncConfig , configOverrides ) ;
22
22
return newUserSync ( {
23
23
config : thisConfig ,
24
- browserSupportsCookies : ! disableBrowserCookies ,
24
+ browserSupportsCookies : function ( ) {
25
+ return ! disableBrowserCookies
26
+ } ,
25
27
} )
26
28
}
27
29
let clock ;
@@ -379,7 +381,9 @@ describe('user sync', function () {
379
381
it ( 'should still allow default image syncs if setConfig only defined iframe' , function ( ) {
380
382
const userSync = newUserSync ( {
381
383
config : config . getConfig ( 'userSync' ) ,
382
- browserSupportsCookies : true
384
+ browserSupportsCookies : function ( ) {
385
+ return true
386
+ }
383
387
} ) ;
384
388
385
389
config . setConfig ( {
@@ -404,7 +408,9 @@ describe('user sync', function () {
404
408
it ( 'should not fire image pixel for a bidder if iframe pixel is fired for same bidder' , function ( ) {
405
409
const userSync = newUserSync ( {
406
410
config : config . getConfig ( 'userSync' ) ,
407
- browserSupportsCookies : true
411
+ browserSupportsCookies : function ( ) {
412
+ return true
413
+ }
408
414
} ) ;
409
415
410
416
config . setConfig ( {
@@ -431,7 +437,9 @@ describe('user sync', function () {
431
437
it ( 'should override default image syncs if setConfig used image filter' , function ( ) {
432
438
const userSync = newUserSync ( {
433
439
config : config . getConfig ( 'userSync' ) ,
434
- browserSupportsCookies : true
440
+ browserSupportsCookies : function ( ) {
441
+ return true
442
+ }
435
443
} ) ;
436
444
437
445
config . setConfig ( {
@@ -456,7 +464,9 @@ describe('user sync', function () {
456
464
it ( 'should override default image syncs if setConfig used all filter' , function ( ) {
457
465
const userSync = newUserSync ( {
458
466
config : config . getConfig ( 'userSync' ) ,
459
- browserSupportsCookies : true
467
+ browserSupportsCookies : function ( ) {
468
+ return true
469
+ }
460
470
} ) ;
461
471
462
472
config . setConfig ( {
0 commit comments