Skip to content

Commit

Permalink
Added Unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-azhar-mulla authored and pm-azhar-mulla committed Jun 7, 2023
1 parent 59a1e6c commit 9239218
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/spec/modules/pubmaticBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ describe('PubMatic adapter', function () {
battr: [13, 14],
linearity: 1,
placement: 2,
plcmt: 1,
minbitrate: 10,
maxbitrate: 10
}
Expand Down Expand Up @@ -167,6 +168,7 @@ describe('PubMatic adapter', function () {
battr: [13, 14],
linearity: 1,
placement: 2,
plcmt: 1,
minbitrate: 100,
maxbitrate: 4096
}
Expand Down Expand Up @@ -355,6 +357,7 @@ describe('PubMatic adapter', function () {
battr: [13, 14],
linearity: 1,
placement: 2,
plcmt: 1,
minbitrate: 100,
maxbitrate: 4096
}
Expand Down Expand Up @@ -465,6 +468,7 @@ describe('PubMatic adapter', function () {
battr: [13, 14],
linearity: 1,
placement: 2,
plcmt: 1,
minbitrate: 100,
maxbitrate: 4096
}
Expand Down Expand Up @@ -526,6 +530,7 @@ describe('PubMatic adapter', function () {
battr: [13, 14],
linearity: 1,
placement: 2,
plcmt: 1,
minbitrate: 100,
maxbitrate: 4096
}
Expand Down Expand Up @@ -2316,6 +2321,7 @@ describe('PubMatic adapter', function () {

expect(data.imp[0]['video']['linearity']).to.equal(videoBidRequests[0].params.video['linearity']);
expect(data.imp[0]['video']['placement']).to.equal(videoBidRequests[0].params.video['placement']);
expect(data.imp[0]['video']['plcmt']).to.equal(videoBidRequests[0].params.video['plcmt']);
expect(data.imp[0]['video']['minbitrate']).to.equal(videoBidRequests[0].params.video['minbitrate']);
expect(data.imp[0]['video']['maxbitrate']).to.equal(videoBidRequests[0].params.video['maxbitrate']);

Expand Down Expand Up @@ -2770,6 +2776,7 @@ describe('PubMatic adapter', function () {

expect(data.imp[1]['video']['linearity']).to.equal(multipleMediaRequests[1].params.video['linearity']);
expect(data.imp[1]['video']['placement']).to.equal(multipleMediaRequests[1].params.video['placement']);
expect(data.imp[1]['video']['plcmt']).to.equal(multipleMediaRequests[1].params.video['plcmt']);
expect(data.imp[1]['video']['minbitrate']).to.equal(multipleMediaRequests[1].params.video['minbitrate']);
expect(data.imp[1]['video']['maxbitrate']).to.equal(multipleMediaRequests[1].params.video['maxbitrate']);

Expand Down

0 comments on commit 9239218

Please sign in to comment.