Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/reklamupBidAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { isBidRequestValid, buildRequests, interpretResponse, getUserSyncs } from '../libraries/teqblazeUtils/bidderUtils.js';

const BIDDER_CODE = 'reklamup';
const GVLID = 1619;
const AD_URL = 'https://node.reklamup.com/pbjs';
const SYNC_URL = 'https://usersync.reklamup.com';

Expand All @@ -20,6 +21,7 @@ declare module '../src/adUnits' {

export const spec: BidderSpec<typeof BIDDER_CODE> = {
code: BIDDER_CODE,
gvlid: GVLID,
supportedMediaTypes: [BANNER, VIDEO, NATIVE],

isBidRequestValid: isBidRequestValid(),
Expand Down
6 changes: 6 additions & 0 deletions test/spec/modules/reklamupBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
timeout: 500
};

describe('spec', function () {
it('should have the correct gvlid', function () {
expect(spec.gvlid).to.equal(1619);
});
});

describe('isBidRequestValid', function () {
it('Should return true if there are bidId, params and key parameters present', function () {
expect(spec.isBidRequestValid(bids[0])).to.be.true;
Expand Down Expand Up @@ -229,13 +235,13 @@
expect(placement.sizes).to.be.an('array');
break;
case VIDEO:
expect(placement.playerSize).to.be.an('array');
expect(placement.minduration).to.be.an('number');
expect(placement.maxduration).to.be.an('number');
break;

Check warning on line 241 in test/spec/modules/reklamupBidAdapter_spec.js

View workflow job for this annotation

GitHub Actions / Coverage

238-241 lines are not covered with tests
case NATIVE:
expect(placement.native).to.be.an('object');
break;

Check warning on line 244 in test/spec/modules/reklamupBidAdapter_spec.js

View workflow job for this annotation

GitHub Actions / Coverage

243-244 lines are not covered with tests
}
}
});
Expand Down
Loading