Skip to content

Commit

Permalink
Fix renderer test for new validation rule (prebid#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and jbAdyoulike committed Sep 21, 2017
1 parent b675830 commit d76bbbd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/spec/bidmanager_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,16 @@ describe('bidmanager.js', function () {
});

it('requires a renderer on outstream bids', () => {
sinon.stub(utils, 'getBidRequest', () => ({
const bidRequest = () => ({
start: timestamp(),
bidder: 'appnexusAst',
mediaTypes: {
video: {context: 'outstream'}
},
}));
});

sinon.stub(utils, 'getBidRequest', bidRequest);
sinon.stub(utils, 'getBidderRequest', bidRequest);

const bid = Object.assign({},
bidfactory.createBid(1),
Expand All @@ -645,6 +649,7 @@ describe('bidmanager.js', function () {
assert.equal(bidsRecCount + 1, $$PREBID_GLOBAL$$._bidsReceived.length);

utils.getBidRequest.restore();
utils.getBidderRequest.restore();
});
});
});

0 comments on commit d76bbbd

Please sign in to comment.