Skip to content

Commit

Permalink
adding logInfo message to note the consentManagement module was activ…
Browse files Browse the repository at this point in the history
…ated (prebid#2767)

* adding logInfo message to note the module was activated

* update unit test
  • Loading branch information
jsnellbaker authored and florevallatmrf committed Sep 6, 2018
1 parent 01cb005 commit 7ec1ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
2 changes: 1 addition & 1 deletion test/spec/modules/consentManagement_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit 7ec1ff2

Please sign in to comment.