From c63673c97521c0b03209f7ea471939e3a24ec1e3 Mon Sep 17 00:00:00 2001 From: bretg Date: Tue, 29 Aug 2017 12:17:42 -0400 Subject: [PATCH] userSync is off by default (#1543) * userSync is off by default * updating test for userSync off by default --- modules/rubiconBidAdapter.js | 2 +- test/spec/modules/rubiconBidAdapter_spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/rubiconBidAdapter.js b/modules/rubiconBidAdapter.js index cd45d6fae40..d59a21c3643 100644 --- a/modules/rubiconBidAdapter.js +++ b/modules/rubiconBidAdapter.js @@ -441,7 +441,7 @@ function syncEmily(hasSynced) { } const defaultUserSyncConfig = { - enabled: true, + enabled: false, delay: 5000 }; const iframeUrl = 'https://tap-secure.rubiconproject.com/partner/scripts/rubicon/emily.html?rtb_ext=1'; diff --git a/test/spec/modules/rubiconBidAdapter_spec.js b/test/spec/modules/rubiconBidAdapter_spec.js index b30fa083a68..02c07ef85af 100644 --- a/test/spec/modules/rubiconBidAdapter_spec.js +++ b/test/spec/modules/rubiconBidAdapter_spec.js @@ -1101,7 +1101,7 @@ describe('the rubicon adapter', () => { window.$$PREBID_GLOBAL$$.getConfig = origGetConfig; }); - it('should add the Emily iframe by default', () => { + it('should not add the Emily iframe by default', () => { sinon.stub(window.$$PREBID_GLOBAL$$, 'getConfig', (key) => { var config = { rubicon: { userSync: {delay: 10} @@ -1116,10 +1116,10 @@ describe('the rubicon adapter', () => { clock.tick(9); let iframes = document.querySelectorAll('[src="' + emilyUrl + '"]'); expect(iframes.length).to.equal(0); - // move clock to usersync delay, iframe should have been added + // move clock to usersync delay, iframe should still not have been added clock.tick(1); iframes = document.querySelectorAll('[src="' + emilyUrl + '"]'); - expect(iframes.length).to.equal(1); + expect(iframes.length).to.equal(0); }); it('should add the Emily iframe when enabled', () => {