@@ -132,7 +132,7 @@ describe('BeOp Bid Adapter tests', () => {
132
132
expect ( payload . url ) . to . equal ( 'http://test.te' ) ;
133
133
} ) ;
134
134
135
- it ( 'should call the endpoint with psegs and bpsegs (stringified) data if any or [] if none' , function ( ) {
135
+ it ( 'should call the endpoint with bpsegs (stringified) data if any or [] if none' , function ( ) {
136
136
let bidderRequest =
137
137
{
138
138
'ortb2' : {
@@ -149,15 +149,14 @@ describe('BeOp Bid Adapter tests', () => {
149
149
150
150
const request = spec . buildRequests ( bidRequests , bidderRequest ) ;
151
151
const payload = JSON . parse ( request . data ) ;
152
- expect ( payload . psegs ) . to . exist ;
153
- expect ( payload . psegs ) . to . include ( 1234 ) ;
154
- expect ( payload . psegs ) . to . include ( 5678 ) ;
155
- expect ( payload . psegs ) . to . include ( 910 ) ;
156
- expect ( payload . psegs ) . to . not . include ( 1 ) ;
157
152
expect ( payload . bpsegs ) . to . exist ;
158
153
expect ( payload . bpsegs ) . to . include ( 'axed' ) ;
159
154
expect ( payload . bpsegs ) . to . include ( 'axec' ) ;
160
155
expect ( payload . bpsegs ) . to . include ( '1234' ) ;
156
+ expect ( payload . bpsegs ) . to . include ( '1234' ) ;
157
+ expect ( payload . bpsegs ) . to . include ( '5678' ) ;
158
+ expect ( payload . bpsegs ) . to . include ( '910' ) ;
159
+ expect ( payload . bpsegs ) . to . not . include ( '1' ) ;
161
160
162
161
let bidderRequest2 =
163
162
{
@@ -166,8 +165,6 @@ describe('BeOp Bid Adapter tests', () => {
166
165
167
166
const request2 = spec . buildRequests ( bidRequests , bidderRequest2 ) ;
168
167
const payload2 = JSON . parse ( request2 . data ) ;
169
- expect ( payload2 . psegs ) . to . exist ;
170
- expect ( payload2 . psegs ) . to . be . empty ;
171
168
expect ( payload2 . bpsegs ) . to . exist ;
172
169
expect ( payload2 . bpsegs ) . to . be . empty ;
173
170
} ) ;
0 commit comments