Skip to content

Commit

Permalink
renamed instances of 'skipdelay' to 'skipafter'
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Dettman committed Oct 30, 2018
1 parent 7442ef1 commit b9764c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export const FASTLANE_ENDPOINT = '//fastlane.rubiconproject.com/a/api/fastlane.j
export const VIDEO_ENDPOINT = '//prebid-server.rubiconproject.com/openrtb/auction';
export const SYNC_ENDPOINT = 'https://eus.rubiconproject.com/usync.html';

const TIMEOUT_BUFFER = 500;

var sizeMap = {
1: '468x60',
2: '728x90',
Expand Down
20 changes: 10 additions & 10 deletions test/spec/modules/rubiconBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ describe('the rubicon adapter', function () {
w: 640,
h: 480,
skip: 1,
skipdelay: 15,
skipafter: 15,
pos: 1,
protocols: [1, 2, 3, 4, 5, 6]
}
};
bid.params.video = {
'language': 'en',
'skip': 1,
'skipdelay': 15,
'skipafter': 15,
'playerHeight': 480,
'playerWidth': 640,
'size_id': 201,
Expand All @@ -176,7 +176,7 @@ describe('the rubicon adapter', function () {
bid.params.video = {
'language': 'en',
'skip': 1,
'skipdelay': 15,
'skipafter': 15,
'playerHeight': 320,
'playerWidth': 640,
'size_id': 201,
Expand Down Expand Up @@ -212,13 +212,13 @@ describe('the rubicon adapter', function () {
bid.params.video = {
'language': 'en',
'skip': 1,
'skipdelay': 15,
'skipafter': 15,
'playerHeight': 320,
'playerWidth': 640,
'size_id': 203,
'aeParams': {
'p_aso.video.ext.skip': '1',
'p_aso.video.ext.skipdelay': '15'
'p_aso.video.ext.skipafter': '15'
}
};
}
Expand Down Expand Up @@ -976,13 +976,13 @@ describe('the rubicon adapter', function () {
bidCopy4.params.video = {
'language': 'en',
'p_aso.video.ext.skip': true,
'p_aso.video.ext.skipdelay': 15,
'p_aso.video.ext.skipafter': 15,
'playerHeight': 320,
'playerWidth': 640,
'size_id': 201,
'aeParams': {
'p_aso.video.ext.skip': '1',
'p_aso.video.ext.skipdelay': '15'
'p_aso.video.ext.skipafter': '15'
}
};
bidderRequest.bids.push(bidCopy4);
Expand Down Expand Up @@ -1018,7 +1018,7 @@ describe('the rubicon adapter', function () {
expect(imp.ext.rubicon.video.size_id).to.equal(201);
expect(imp.ext.rubicon.video.language).to.equal('en');
expect(imp.ext.rubicon.video.skip).to.equal(1);
expect(imp.ext.rubicon.video.skipdelay).to.equal(15);
expect(imp.ext.rubicon.video.skipafter).to.equal(15);
expect(post.user.ext.consent).to.equal('BOJ/P2HOJ/P2HABABMAAAAAZ+A==');
expect(post.regs.ext.gdpr).to.equal(1);
expect(post).to.have.property('ext').that.is.an('object');
Expand Down Expand Up @@ -1053,13 +1053,13 @@ describe('the rubicon adapter', function () {
expect(imp.video.maxduration).to.equal(30);
expect(imp.video.startdelay).to.equal(0);
expect(imp.video.skip).to.equal(1);
expect(imp.video.skipdelay).to.equal(15);
expect(imp.video.skipafter).to.equal(15);
expect(imp.ext.rubicon.video.playerWidth).to.equal(640);
expect(imp.ext.rubicon.video.playerHeight).to.equal(480);
expect(imp.ext.rubicon.video.size_id).to.equal(201);
expect(imp.ext.rubicon.video.language).to.equal('en');
expect(imp.ext.rubicon.video.skip).to.equal(1);
expect(imp.ext.rubicon.video.skipdelay).to.equal(15);
expect(imp.ext.rubicon.video.skipafter).to.equal(15);
expect(post.user.ext.consent).to.equal('BOJ/P2HOJ/P2HABABMAAAAAZ+A==');
expect(post.regs.ext.gdpr).to.equal(1);
expect(post).to.have.property('ext').that.is.an('object');
Expand Down

0 comments on commit b9764c0

Please sign in to comment.