Skip to content

Commit

Permalink
Smaato: Fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrosinski committed Jul 10, 2020
1 parent 4a5e2a6 commit ef00d2f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/spec/modules/smaatoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import {config} from 'src/config.js';
const imageAd = {
image: {
img: {
url: 'http://localhost:3000/static/ad.jpg',
url: 'https://prebid/static/ad.jpg',
w: 320,
h: 50,
ctaurl: 'http://localhost:3000/track/ctaurl'
ctaurl: 'https://prebid/track/ctaurl'
},
impressiontrackers: [
'http://localhost:3000/track/imp/1',
'http://localhost:3000/track/imp/2'
'https://prebid/track/imp/1',
'https://prebid/track/imp/2'
],
clicktrackers: [
'http://localhost:3000/track/click/1'
'https://prebid/track/click/1'
]
}
};
Expand All @@ -28,11 +28,11 @@ const richmediaAd = {
h: 600
},
impressiontrackers: [
'http://localhost:3000/track/imp/1',
'http://localhost:3000/track/imp/2'
'https://prebid/track/imp/1',
'https://prebid/track/imp/2'
],
clicktrackers: [
'http://localhost:3000/track/click/1'
'https://prebid/track/click/1'
]
}
};
Expand Down Expand Up @@ -84,8 +84,8 @@ const openRtbBidResponse = (adType) => {
'dealid': '12345',
'id': '6906aae8-7f74-4edd-9a4f-f49379a3cadd',
'impid': '226416e6e6bf41',
'iurl': 'https://bidstalkcreatives.s3.amazonaws.com/1x1.png',
'nurl': 'https://ets-eu-west-1.track.smaato.net/v1/view?sessionId=e4e17adb-9599-42b1-bb5f-a1f1b3bee572&adSourceId=6906aae8-7f74-4edd-9a4f-f49379a3cadd&originalRequestTime=1552310449698&expires=1552311350698&winurl=ama8JbpJVpFWxvEja5viE3cLXFu58qRI8dGUh23xtsOn3N2-5UU0IwkgNEmR82pI37fcMXejL5IWTNAoW6Cnsjf-Dxl_vx2dUqMrVEevX-Vdx2VVnf-D5f73gZhvi4t36iPL8Dsw4aACekoLvVOV7-eXDjz7GHy60QFqcwKf5g2AlKPOInyZ6vJg_fn4qA9argvCRgwVybXE9Ndm2W0v8La4uFYWpJBOUveDDUrSQfzal7RsYvLb_OyaMlPHdrd_bwA9qqZWuyJXd-L9lxr7RQ%3D%3D%7CMw3kt91KJR0Uy5L-oNztAg%3D%3D&dpid=4XVofb_lH-__hr2JNGhKfg%3D%3D%7Cr9ciCU1cx3zmHXihItKO0g%3D%3D',
'iurl': 'https://prebid/iurl',
'nurl': 'https://prebid/nurl',
'price': 0.01,
'w': 350,
'h': 50
Expand Down Expand Up @@ -118,7 +118,7 @@ const interpretedBidsImg = [
cpm: 0.01,
width: 350,
height: 50,
ad: '<div style=\"cursor:pointer\" onclick=\"fetch(decodeURIComponent(\'http%3A%2F%2Flocalhost%3A3000%2Ftrack%2Fclick%2F1\'), {cache: \'no-cache\'});;window.open(decodeURIComponent(\'http%3A%2F%2Flocalhost%3A3000%2Ftrack%2Fctaurl\'));\"><img src=\"http://localhost:3000/static/ad.jpg\" width=\"320\" height=\"50\"/><img src=\"http://localhost:3000/track/imp/1\" alt=\"\" width=\"0\" height=\"0\"/><img src=\"http://localhost:3000/track/imp/2\" alt=\"\" width=\"0\" height=\"0\"/></div>',
ad: '<div style=\"cursor:pointer\" onclick=\"fetch(decodeURIComponent(\'https%3A%2F%2Fprebid%2Ftrack%2Fclick%2F1\'), {cache: \'no-cache\'});;window.open(decodeURIComponent(\'https%3A%2F%2Fprebid%2Ftrack%2Fctaurl\'));\"><img src=\"https://prebid/static/ad.jpg\" width=\"320\" height=\"50\"/><img src=\"https://prebid/track/imp/1\" alt=\"\" width=\"0\" height=\"0\"/><img src=\"https://prebid/track/imp/2\" alt=\"\" width=\"0\" height=\"0\"/></div>',
ttl: 300,
creativeId: 'CR69381',
dealId: '12345',
Expand All @@ -138,7 +138,7 @@ const interpretedBidsRichmedia = [
cpm: 0.01,
width: 350,
height: 50,
ad: '<div onclick=\"fetch(decodeURIComponent(\'http%3A%2F%2Flocalhost%3A3000%2Ftrack%2Fclick%2F1\'), {cache: \'no-cache\'});\"><div><h3>RICHMEDIA CONTENT</h3></div><img src=\"http://localhost:3000/track/imp/1\" alt=\"\" width=\"0\" height=\"0\"/><img src=\"http://localhost:3000/track/imp/2\" alt=\"\" width=\"0\" height=\"0\"/></div>',
ad: '<div onclick=\"fetch(decodeURIComponent(\'https%3A%2F%2Fprebid%2Ftrack%2Fclick%2F1\'), {cache: \'no-cache\'});\"><div><h3>RICHMEDIA CONTENT</h3></div><img src=\"https://prebid/track/imp/1\" alt=\"\" width=\"0\" height=\"0\"/><img src=\"https://prebid/track/imp/2\" alt=\"\" width=\"0\" height=\"0\"/></div>',
ttl: 300,
creativeId: 'CR69381',
dealId: '12345',
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('smaatoBidAdapterTest', () => {
});

it('can override endpoint', () => {
const overridenEndpoint = 'http://localhost:3000/bidder';
const overridenEndpoint = 'https://prebid/bidder';
let bidRequest = utils.deepClone(singleBannerBidRequest);
utils.deepSetValue(bidRequest, 'params.endpoint', overridenEndpoint);
const actualEndpoint = spec.buildRequests([bidRequest], defaultBidderRequest).url;
Expand Down

0 comments on commit ef00d2f

Please sign in to comment.