Skip to content

Commit

Permalink
fixed unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-harshad-mane committed Dec 11, 2017
1 parent 3a8cbe4 commit b6e7805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec/modules/pubmaticBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('PubMatic adapter', () => {
describe('Request formation', () => {
it('Endpoint checking', () => {
let request = spec.buildRequests(bidRequests);
expect(request.url).to.equal('//openbid.pubmatic.com/translator?source=prebid-server');
expect(request.url).to.equal('//openbid.pubmatic.com/translator?source=prebid-client');
expect(request.method).to.equal('POST');
});

Expand All @@ -98,7 +98,7 @@ describe('PubMatic adapter', () => {
expect(data.ext.wrapper.version).to.equal(bidRequests[0].params.verId); // OpenWrap: Wrapper Profile Version ID

expect(data.imp[0].id).to.equal(bidRequests[0].bidId); // Prebid bid id is passed as id
expect(data.imp[0].bidfloor).to.equal(bidRequests[0].params.kadfloor); // kadfloor
expect(data.imp[0].bidfloor).to.equal(parseFloat(bidRequests[0].params.kadfloor)); // kadfloor
expect(data.imp[0].tagid).to.equal('/15671365/DMDemo'); // tagid
expect(data.imp[0].banner.w).to.equal(300); // width
expect(data.imp[0].banner.h).to.equal(250); // height
Expand Down

0 comments on commit b6e7805

Please sign in to comment.