@@ -127,7 +127,7 @@ describe('Trion adapter tests', () => {
127
127
128
128
it ( 'when place bid is returned as false' , ( ) => {
129
129
TRION_BID_RESPONSE . result . placeBid = false ;
130
- let response = spec . interpretResponse ( TRION_BID_RESPONSE , { bidRequest : TRION_BID } ) ;
130
+ let response = spec . interpretResponse ( { body : TRION_BID_RESPONSE } , { bidRequest : TRION_BID } ) ;
131
131
132
132
expect ( response ) . to . deep . equal ( [ ] ) ;
133
133
@@ -136,14 +136,14 @@ describe('Trion adapter tests', () => {
136
136
137
137
it ( 'when no cpm is in the response' , ( ) => {
138
138
TRION_BID_RESPONSE . result . cpm = 0 ;
139
- let response = spec . interpretResponse ( TRION_BID_RESPONSE , { bidRequest : TRION_BID } ) ;
139
+ let response = spec . interpretResponse ( { body : TRION_BID_RESPONSE } , { bidRequest : TRION_BID } ) ;
140
140
expect ( response ) . to . deep . equal ( [ ] ) ;
141
141
TRION_BID_RESPONSE . result . cpm = 1 ;
142
142
} ) ;
143
143
144
144
it ( 'when no ad is in the response' , ( ) => {
145
145
TRION_BID_RESPONSE . result . ad = null ;
146
- let response = spec . interpretResponse ( TRION_BID_RESPONSE , { bidRequest : TRION_BID } ) ;
146
+ let response = spec . interpretResponse ( { body : TRION_BID_RESPONSE } , { bidRequest : TRION_BID } ) ;
147
147
expect ( response ) . to . deep . equal ( [ ] ) ;
148
148
TRION_BID_RESPONSE . result . ad = 'test' ;
149
149
} ) ;
@@ -153,7 +153,7 @@ describe('Trion adapter tests', () => {
153
153
let bidHeight = '2' ;
154
154
TRION_BID_RESPONSE . result . width = bidWidth ;
155
155
TRION_BID_RESPONSE . result . height = bidHeight ;
156
- let response = spec . interpretResponse ( TRION_BID_RESPONSE , { bidRequest : TRION_BID } ) ;
156
+ let response = spec . interpretResponse ( { body : TRION_BID_RESPONSE } , { bidRequest : TRION_BID } ) ;
157
157
expect ( response [ 0 ] . width ) . to . equal ( bidWidth ) ;
158
158
expect ( response [ 0 ] . height ) . to . equal ( bidHeight ) ;
159
159
TRION_BID_RESPONSE . result . width = '300' ;
@@ -163,7 +163,7 @@ describe('Trion adapter tests', () => {
163
163
it ( 'cpm is properly set and transformed to cents' , ( ) => {
164
164
let bidCpm = 2 ;
165
165
TRION_BID_RESPONSE . result . cpm = bidCpm * 100 ;
166
- let response = spec . interpretResponse ( TRION_BID_RESPONSE , { bidRequest : TRION_BID } ) ;
166
+ let response = spec . interpretResponse ( { body : TRION_BID_RESPONSE } , { bidRequest : TRION_BID } ) ;
167
167
expect ( response [ 0 ] . cpm ) . to . equal ( bidCpm ) ;
168
168
TRION_BID_RESPONSE . result . cpm = 100 ;
169
169
} ) ;
0 commit comments