@@ -130,10 +130,7 @@ describe('weboramaRtdProvider', function() {
130
130
} ) ;
131
131
132
132
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
133
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
134
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
135
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
136
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
133
+ expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . find ( ( bid ) => bid . params ) ) . to . not . exist ;
137
134
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
138
135
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
139
136
site : {
@@ -217,10 +214,7 @@ describe('weboramaRtdProvider', function() {
217
214
} ) ;
218
215
219
216
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
220
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
221
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
222
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
223
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
217
+ expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . find ( ( bid ) => bid . params ) ) . to . not . exist ;
224
218
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
225
219
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
226
220
site : {
@@ -303,11 +297,7 @@ describe('weboramaRtdProvider', function() {
303
297
'adunit1' : data ,
304
298
} ) ;
305
299
306
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
307
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
308
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
309
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
310
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
300
+ expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . find ( ( bid ) => bid . params ) ) . to . not . exist ;
311
301
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
312
302
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
313
303
site : {
@@ -539,10 +529,6 @@ describe('weboramaRtdProvider', function() {
539
529
540
530
reqBidsConfigObj . adUnits . forEach ( adUnit => {
541
531
expect ( adUnit . bids . length ) . to . equal ( 5 ) ;
542
- expect ( adUnit . bids [ 0 ] . params ) . to . be . undefined ;
543
- expect ( adUnit . bids [ 1 ] . params ) . to . be . undefined ;
544
- expect ( adUnit . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
545
- expect ( adUnit . bids [ 3 ] . params ) . to . be . undefined ;
546
532
} ) ;
547
533
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
548
534
if ( v == 'appnexus' ) {
@@ -665,15 +651,8 @@ describe('weboramaRtdProvider', function() {
665
651
666
652
reqBidsConfigObj . adUnits . forEach ( adUnit => {
667
653
expect ( adUnit . bids . length ) . to . equal ( 5 ) ;
668
- expect ( adUnit . bids [ 0 ] . params ) . to . be . undefined ;
669
- expect ( adUnit . bids [ 1 ] . params ) . to . be . undefined ;
670
- expect ( adUnit . bids [ 3 ] . params ) . to . be . undefined ;
671
- expect ( adUnit . bids [ 4 ] . ortb2 ) . to . be . undefined ;
672
654
} ) ;
673
655
674
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
675
- expect ( reqBidsConfigObj . adUnits [ 1 ] . bids [ 2 ] . params ) . to . be . undefined ;
676
-
677
656
expect ( onDataResponse ) . to . deep . equal ( {
678
657
data : data ,
679
658
meta : {
@@ -811,9 +790,6 @@ describe('weboramaRtdProvider', function() {
811
790
expect ( adUnit . bids . length ) . to . equal ( 5 ) ;
812
791
expect ( adUnit . bids [ 0 ] . params . target ) . to . equal ( 'foo=bar' ) ;
813
792
expect ( adUnit . bids [ 1 ] . params . dctr ) . to . equal ( 'foo=bar' ) ;
814
- expect ( adUnit . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
815
- foo : [ 'bar' ]
816
- } ) ;
817
793
expect ( adUnit . bids [ 3 ] . params ) . to . deep . equal ( {
818
794
inventory : {
819
795
foo : 'bar' ,
@@ -1122,11 +1098,6 @@ describe('weboramaRtdProvider', function() {
1122
1098
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
1123
1099
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params . target ) . to . equal ( 'foo=bar' ) ;
1124
1100
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params . dctr ) . to . equal ( 'foo=bar' ) ;
1125
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
1126
- foo : [ 'bar' ] ,
1127
- webo_ctx : [ 'foo' , 'bar' ] ,
1128
- webo_ds : [ 'baz' ] ,
1129
- } ) ;
1130
1101
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . deep . equal ( {
1131
1102
inventory : {
1132
1103
foo : 'bar' ,
@@ -1213,7 +1184,6 @@ describe('weboramaRtdProvider', function() {
1213
1184
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
1214
1185
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
1215
1186
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
1216
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
1217
1187
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
1218
1188
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
1219
1189
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -1360,12 +1330,6 @@ describe('weboramaRtdProvider', function() {
1360
1330
}
1361
1331
} ) ;
1362
1332
} )
1363
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
1364
- webo_ctx : [ 'foo' , 'bar' ] ,
1365
- webo_ds : [ 'baz' ] ,
1366
- webo_bar : [ 'baz' ] ,
1367
- } ) ;
1368
- expect ( reqBidsConfigObj . adUnits [ 1 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
1369
1333
1370
1334
expect ( onDataResponse ) . to . deep . equal ( {
1371
1335
data : data ,
@@ -1446,7 +1410,6 @@ describe('weboramaRtdProvider', function() {
1446
1410
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
1447
1411
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
1448
1412
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
1449
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
1450
1413
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
1451
1414
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
1452
1415
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -1572,7 +1535,6 @@ describe('weboramaRtdProvider', function() {
1572
1535
expect ( adUnit . bids . length ) . to . equal ( 5 ) ;
1573
1536
expect ( adUnit . bids [ 0 ] . params ) . to . be . undefined ;
1574
1537
expect ( adUnit . bids [ 1 ] . params ) . to . be . undefined ;
1575
- expect ( adUnit . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
1576
1538
expect ( adUnit . bids [ 3 ] . params ) . to . be . undefined ;
1577
1539
} ) ;
1578
1540
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
@@ -1716,7 +1678,6 @@ describe('weboramaRtdProvider', function() {
1716
1678
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . be . undefined ;
1717
1679
} )
1718
1680
1719
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
1720
1681
expect ( reqBidsConfigObj . adUnits [ 1 ] . bids [ 2 ] . params ) . to . be . undefined ;
1721
1682
1722
1683
expect ( onDataResponse ) . to . deep . equal ( {
@@ -2172,11 +2133,6 @@ describe('weboramaRtdProvider', function() {
2172
2133
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
2173
2134
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params . target ) . to . equal ( 'foo=bar' ) ;
2174
2135
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params . dctr ) . to . equal ( 'foo=bar' ) ;
2175
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
2176
- foo : [ 'bar' ] ,
2177
- webo_cs : [ 'foo' , 'bar' ] ,
2178
- webo_audiences : [ 'baz' ] ,
2179
- } ) ;
2180
2136
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . deep . equal ( {
2181
2137
inventory : {
2182
2138
foo : 'bar' ,
@@ -2250,7 +2206,6 @@ describe('weboramaRtdProvider', function() {
2250
2206
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
2251
2207
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
2252
2208
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
2253
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
2254
2209
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
2255
2210
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
2256
2211
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -2324,7 +2279,6 @@ describe('weboramaRtdProvider', function() {
2324
2279
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
2325
2280
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
2326
2281
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
2327
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
2328
2282
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
2329
2283
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
2330
2284
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -2552,7 +2506,6 @@ describe('weboramaRtdProvider', function() {
2552
2506
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
2553
2507
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
2554
2508
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
2555
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
2556
2509
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
2557
2510
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
2558
2511
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -2677,7 +2630,6 @@ describe('weboramaRtdProvider', function() {
2677
2630
expect ( adUnit . bids . length ) . to . equal ( 5 ) ;
2678
2631
expect ( adUnit . bids [ 0 ] . params ) . to . be . undefined ;
2679
2632
expect ( adUnit . bids [ 1 ] . params ) . to . be . undefined ;
2680
- expect ( adUnit . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
2681
2633
expect ( adUnit . bids [ 3 ] . params ) . to . be . undefined ;
2682
2634
} ) ;
2683
2635
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
@@ -2806,7 +2758,6 @@ describe('weboramaRtdProvider', function() {
2806
2758
expect ( adUnit . bids [ 3 ] . params ) . to . be . undefined ;
2807
2759
} ) ;
2808
2760
2809
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
2810
2761
expect ( reqBidsConfigObj . adUnits [ 1 ] . bids [ 2 ] . params ) . to . be . undefined ;
2811
2762
2812
2763
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
@@ -3278,11 +3229,6 @@ describe('weboramaRtdProvider', function() {
3278
3229
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
3279
3230
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params . target ) . to . equal ( 'foo=bar' ) ;
3280
3231
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params . dctr ) . to . equal ( 'foo=bar' ) ;
3281
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
3282
- foo : [ 'bar' ] ,
3283
- lite_occupation : [ 'gérant' , 'bénévole' ] ,
3284
- lite_hobbies : [ 'sport' , 'cinéma' ] ,
3285
- } ) ;
3286
3232
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . deep . equal ( {
3287
3233
inventory : {
3288
3234
foo : 'bar' ,
@@ -3355,7 +3301,6 @@ describe('weboramaRtdProvider', function() {
3355
3301
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
3356
3302
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
3357
3303
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
3358
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
3359
3304
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
3360
3305
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
3361
3306
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -3428,7 +3373,6 @@ describe('weboramaRtdProvider', function() {
3428
3373
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
3429
3374
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
3430
3375
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
3431
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
3432
3376
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
3433
3377
expect ( reqBidsConfigObj . ortb2Fragments . bidder . other ) . to . deep . equal ( {
3434
3378
site : {
@@ -3515,7 +3459,6 @@ describe('weboramaRtdProvider', function() {
3515
3459
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids . length ) . to . equal ( 5 ) ;
3516
3460
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 0 ] . params ) . to . be . undefined ;
3517
3461
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 1 ] . params ) . to . be . undefined ;
3518
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( defaultProfile ) ;
3519
3462
expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 3 ] . params ) . to . be . undefined ;
3520
3463
[ 'smartadserver' , 'pubmatic' , 'appnexus' , 'rubicon' , 'other' ] . forEach ( ( v ) => {
3521
3464
expect ( reqBidsConfigObj . ortb2Fragments . bidder [ v ] ) . to . deep . equal ( {
@@ -3663,13 +3606,6 @@ describe('weboramaRtdProvider', function() {
3663
3606
} ) ;
3664
3607
} )
3665
3608
3666
- expect ( reqBidsConfigObj . adUnits [ 0 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( {
3667
- lite_occupation : [ 'gérant' , 'bénévole' ] ,
3668
- lite_hobbies : [ 'sport' , 'cinéma' ] ,
3669
- lito_bar : [ 'baz' ] ,
3670
- } ) ;
3671
- expect ( reqBidsConfigObj . adUnits [ 1 ] . bids [ 2 ] . params . keywords ) . to . deep . equal ( data ) ;
3672
-
3673
3609
expect ( onDataResponse ) . to . deep . equal ( {
3674
3610
data : data ,
3675
3611
meta : {
0 commit comments