Skip to content

Commit 877c513

Browse files
jsnellbakerAlessandroDG
authored andcommitted
adding logInfo message to note the consentManagement module was activated (prebid#2767)
* adding logInfo message to note the module was activated * update unit test
1 parent 6e28178 commit 877c513

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/consentManagement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export function setConfig(config) {
348348
allowAuction = DEFAULT_ALLOW_AUCTION_WO_CONSENT;
349349
utils.logInfo(`consentManagement config did not specify allowAuctionWithoutConsent. Using system default setting (${DEFAULT_ALLOW_AUCTION_WO_CONSENT}).`);
350350
}
351-
351+
utils.logInfo('consentManagement module has been activated...');
352352
$$PREBID_GLOBAL$$.requestBids.addHook(requestBidsHook, 50);
353353
}
354354
config.getConfig('consentManagement', config => setConfig(config.consentManagement));

test/spec/modules/consentManagement_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('consentManagement', function () {
2323
expect(userCMP).to.be.equal('iab');
2424
expect(consentTimeout).to.be.equal(10000);
2525
expect(allowAuction).to.be.true;
26-
sinon.assert.callCount(utils.logInfo, 3);
26+
sinon.assert.callCount(utils.logInfo, 4);
2727
});
2828
});
2929

0 commit comments

Comments
 (0)