@@ -56,6 +56,93 @@ describe('ColossussspAdapter', function () {
56
56
referer : 'http://www.example.com' ,
57
57
reachedTop : true ,
58
58
} ,
59
+ ortb2 : {
60
+ app : {
61
+ name : 'myappname' ,
62
+ keywords : 'power tools, drills' ,
63
+ content : {
64
+ data : [
65
+ {
66
+ name : 'www.dataprovider1.com' ,
67
+ ext : {
68
+ segtax : 6
69
+ } ,
70
+ segment : [
71
+ {
72
+ id : '687'
73
+ } ,
74
+ {
75
+ id : '123'
76
+ }
77
+ ]
78
+ } ,
79
+ {
80
+ name : 'www.dataprovider1.com' ,
81
+ ext : {
82
+ segtax : 7
83
+ } ,
84
+ segment : [
85
+ {
86
+ id : '456'
87
+ } ,
88
+ {
89
+ id : '789'
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
95
+ } ,
96
+ site : {
97
+ name : 'example' ,
98
+ domain : 'page.example.com' ,
99
+ cat : [ 'IAB2' ] ,
100
+ sectioncat : [ 'IAB2-2' ] ,
101
+ pagecat : [ 'IAB2-2' ] ,
102
+ page : 'https://page.example.com/here.html' ,
103
+ ref : 'https://ref.example.com' ,
104
+ keywords : 'power tools, drills' ,
105
+ search : 'drill' ,
106
+ content : {
107
+ userrating : '4' ,
108
+ data : [ {
109
+ name : 'www.dataprovider1.com' ,
110
+ ext : {
111
+ segtax : 7 ,
112
+ cids : [ 'iris_c73g5jq96mwso4d8' ]
113
+ } ,
114
+ segment : [
115
+ { id : '687' } ,
116
+ { id : '123' }
117
+ ]
118
+ } ]
119
+ } ,
120
+ ext : {
121
+ data : {
122
+ pageType : 'article' ,
123
+ category : 'repair'
124
+ }
125
+ }
126
+ } ,
127
+ user : {
128
+ yob : 1985 ,
129
+ gender : 'm' ,
130
+ keywords : 'a,b' ,
131
+ data : [ {
132
+ name : 'dataprovider.com' ,
133
+ ext : { segtax : 4 } ,
134
+ segment : [
135
+ { id : '1' }
136
+ ]
137
+ } ] ,
138
+ ext : {
139
+ data : {
140
+ registered : true ,
141
+ interests : [ 'cars' ]
142
+ }
143
+ }
144
+ }
145
+ } ,
59
146
bids : [ bid ]
60
147
}
61
148
@@ -91,7 +178,7 @@ describe('ColossussspAdapter', function () {
91
178
it ( 'Returns valid data if array of bids is valid' , function ( ) {
92
179
let data = serverRequest . data ;
93
180
expect ( data ) . to . be . an ( 'object' ) ;
94
- expect ( data ) . to . have . all . keys ( 'deviceWidth' , 'deviceHeight' , 'language' , 'secure' , 'host' , 'page' , 'placements' , 'ccpa' , 'gdpr_consent' , 'gdpr_require' ) ;
181
+ expect ( data ) . to . have . all . keys ( 'deviceWidth' , 'deviceHeight' , 'language' , 'secure' , 'host' , 'page' , 'placements' , 'ccpa' , 'gdpr_consent' , 'gdpr_require' , 'userObj' , 'siteObj' , 'appObj' ) ;
95
182
expect ( data . deviceWidth ) . to . be . a ( 'number' ) ;
96
183
expect ( data . deviceHeight ) . to . be . a ( 'number' ) ;
97
184
expect ( data . language ) . to . be . a ( 'string' ) ;
@@ -132,7 +219,7 @@ describe('ColossussspAdapter', function () {
132
219
133
220
let data = serverRequest . data ;
134
221
expect ( data ) . to . be . an ( 'object' ) ;
135
- expect ( data ) . to . have . all . keys ( 'deviceWidth' , 'deviceHeight' , 'language' , 'secure' , 'host' , 'page' , 'placements' , 'ccpa' , 'gdpr_consent' , 'gdpr_require' ) ;
222
+ expect ( data ) . to . have . all . keys ( 'deviceWidth' , 'deviceHeight' , 'language' , 'secure' , 'host' , 'page' , 'placements' , 'ccpa' , 'gdpr_consent' , 'gdpr_require' , 'userObj' , 'siteObj' , 'appObj' ) ;
136
223
expect ( data . deviceWidth ) . to . be . a ( 'number' ) ;
137
224
expect ( data . deviceHeight ) . to . be . a ( 'number' ) ;
138
225
expect ( data . language ) . to . be . a ( 'string' ) ;
0 commit comments