Skip to content

Commit

Permalink
Add bid response test with mandatory params
Browse files Browse the repository at this point in the history
  • Loading branch information
tzafrirb committed Oct 30, 2017
1 parent b26570f commit f130123
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/spec/modules/komoonaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ describe('Komoona.com Adapter Tests', () => {
width: 300,
height: 250,
cpm: 0.51,
creative: '<script type="text/javascript" src="http://creative.com/pathToNiceCreative"></script>'
creative: '<script type="text/javascript" src="http://creative.com/pathToNiceCreative"></script>',
ttl: 360,
currency: 'USD',
netRevenue: true,
creativeId: 'd30b58c2ba'
}
]
};
Expand Down Expand Up @@ -136,6 +140,10 @@ describe('Komoona.com Adapter Tests', () => {
expect(bid.uuid).equal(bidsResponse.bids[0].uuid);
expect(bid.width).to.equal(bidsResponse.bids[0].width);
expect(bid.height).to.equal(bidsResponse.bids[0].height);
expect(bid.ttl).to.equal(bidsResponse.bids[0].ttl);
expect(bid.currency).to.equal('USD');
expect(bid.netRevenue).to.equal(true);
expect(bid.creativeId).to.equal(bidsResponse.bids[0].creativeId);
});

describe('Verifies komoonaAdapter sync options', () => {
Expand Down

0 comments on commit f130123

Please sign in to comment.