Skip to content

Commit

Permalink
Pass isRendererRequired check (prebid#8979)
Browse files Browse the repository at this point in the history
  • Loading branch information
spotxslagle authored Sep 10, 2022
1 parent 8f42557 commit ceb96ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/spotxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export const spec = {
const renderer = Renderer.install({
id: 0,
renderNow: true,
url: '/',
config: {
adText: 'SpotX Outstream Video Ad via Prebid.js',
player_width: playersize[0][0],
Expand Down
6 changes: 6 additions & 0 deletions test/spec/modules/spotxBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {expect} from 'chai';
import {config} from 'src/config.js';
import {loadExternalScript} from '../../../src/adloader';
import {isRendererRequired} from '../../../src/Renderer';
import {spec, GOOGLE_CONSENT} from 'modules/spotxBidAdapter.js';

describe('the spotx adapter', function () {
Expand Down Expand Up @@ -568,6 +569,11 @@ describe('the spotx adapter', function () {
renderer.render();
expect(hasRun).to.equal(true);
});

it('should include the url property on the renderer for Prebid Core checks', function () {
var renderer = spec.interpretResponse(serverResponse, bidderRequestObj)[0].renderer;
expect(isRendererRequired(renderer)).to.be.true;
});
});

describe('outstreamRender', function() {
Expand Down

0 comments on commit ceb96ab

Please sign in to comment.