From 7ec1ff207d5410ac83f7e804cbfed9337fbde210 Mon Sep 17 00:00:00 2001 From: jsnellbaker <31102355+jsnellbaker@users.noreply.github.com> Date: Tue, 26 Jun 2018 17:51:55 -0400 Subject: [PATCH] adding logInfo message to note the consentManagement module was activated (#2767) * adding logInfo message to note the module was activated * update unit test --- modules/consentManagement.js | 2 +- test/spec/modules/consentManagement_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/consentManagement.js b/modules/consentManagement.js index cd6b1b94e687..3bae45221fe9 100644 --- a/modules/consentManagement.js +++ b/modules/consentManagement.js @@ -356,7 +356,7 @@ export function setConfig(config) { allowAuction = DEFAULT_ALLOW_AUCTION_WO_CONSENT; utils.logInfo(`consentManagement config did not specify allowAuctionWithoutConsent. Using system default setting (${DEFAULT_ALLOW_AUCTION_WO_CONSENT}).`); } - + utils.logInfo('consentManagement module has been activated...'); $$PREBID_GLOBAL$$.requestBids.addHook(requestBidsHook, 50); } config.getConfig('consentManagement', config => setConfig(config.consentManagement)); diff --git a/test/spec/modules/consentManagement_spec.js b/test/spec/modules/consentManagement_spec.js index 46ab6c46777c..fe6bfc1ebfd0 100644 --- a/test/spec/modules/consentManagement_spec.js +++ b/test/spec/modules/consentManagement_spec.js @@ -23,7 +23,7 @@ describe('consentManagement', function () { expect(userCMP).to.be.equal('iab'); expect(consentTimeout).to.be.equal(10000); expect(allowAuction).to.be.true; - sinon.assert.callCount(utils.logInfo, 3); + sinon.assert.callCount(utils.logInfo, 4); }); });