Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
acsbendi committed May 24, 2024
1 parent 2c16537 commit 1d68736
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions test/spec/modules/koblerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function createBidderRequest(auctionId, timeout, pageUrl, addGdprConsent) {
purpose: {
consents: {
1: false,
2: true
2: true,
3: false
}
},
publisher: {
Expand Down Expand Up @@ -311,27 +312,6 @@ describe('KoblerAdapter', function () {
expect(openRtbRequest.test).to.be.equal(1);
});

it('should read pageUrl from config when testing', function () {
config.setConfig({
pageUrl: 'https://testing-url.com'
});
const validBidRequests = [
createValidBidRequest(
{
test: true
}
)
];
const bidderRequest = createBidderRequest();

const result = spec.buildRequests(validBidRequests, bidderRequest);
expect(result.url).to.be.equal('https://bid-service.dev.essrtb.com/bid/prebid_rtb_call');

const openRtbRequest = JSON.parse(result.data);
expect(openRtbRequest.site.page).to.be.equal('https://testing-url.com');
expect(openRtbRequest.test).to.be.equal(1);
});

it('should not read pageUrl from config when not testing', function () {
config.setConfig({
pageUrl: 'https://testing-url.com'
Expand Down

0 comments on commit 1d68736

Please sign in to comment.