Skip to content

Commit

Permalink
update apacdex unit test to disable debug mode (#6511)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnellbaker authored Apr 1, 2021
1 parent 65c1079 commit 918149b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test/spec/modules/apacdexBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,17 @@ describe('ApacdexBidAdapter', function () {
const bidRequests = spec.buildRequests(bidRequest, bidderRequests);
expect(bidRequests.data.us_privacy).to.equal('someCCPAString');
});
it('should return a properly formatted request with pbjs_debug is true', function () {
config.setConfig({debug: true});
const bidRequests = spec.buildRequests(bidRequest, bidderRequests);
expect(bidRequests.data.test).to.equal(1)
describe('debug test', function() {
beforeEach(function() {
config.setConfig({debug: true});
});
afterEach(function() {
config.setConfig({debug: false});
});
it('should return a properly formatted request with pbjs_debug is true', function () {
const bidRequests = spec.buildRequests(bidRequest, bidderRequests);
expect(bidRequests.data.test).to.equal(1);
});
});
});

Expand Down

0 comments on commit 918149b

Please sign in to comment.