@@ -10,10 +10,7 @@ import { targeting } from 'src/targeting';
10
10
11
11
const bid = {
12
12
videoCacheKey : 'abc' ,
13
- adserverTargeting : {
14
- hb_uuid : 'abc' ,
15
- hb_cache_id : 'abc' ,
16
- } ,
13
+ adserverTargeting : { } ,
17
14
} ;
18
15
19
16
describe ( 'The DFP video support module' , function ( ) {
@@ -43,7 +40,7 @@ describe('The DFP video support module', function () {
43
40
} ) ;
44
41
45
42
it ( 'can take an adserver url as a parameter' , function ( ) {
46
- const bidCopy = utils . deepClone ( bid ) ;
43
+ const bidCopy = Object . assign ( { } , bid ) ;
47
44
bidCopy . vastUrl = 'vastUrl.example' ;
48
45
49
46
const url = parse ( buildDfpVideoUrl ( {
@@ -93,10 +90,10 @@ describe('The DFP video support module', function () {
93
90
} ) ;
94
91
95
92
it ( 'should include the cache key and adserver targeting in cust_params' , function ( ) {
96
- const bidCopy = utils . deepClone ( bid ) ;
97
- bidCopy . adserverTargeting = Object . assign ( bidCopy . adserverTargeting , {
93
+ const bidCopy = Object . assign ( { } , bid ) ;
94
+ bidCopy . adserverTargeting = {
98
95
hb_adid : 'ad_id' ,
99
- } ) ;
96
+ } ;
100
97
101
98
const url = parse ( buildDfpVideoUrl ( {
102
99
adUnit : adUnit ,
@@ -163,10 +160,10 @@ describe('The DFP video support module', function () {
163
160
}
164
161
} ) ;
165
162
166
- const bidCopy = utils . deepClone ( bid ) ;
167
- bidCopy . adserverTargeting = Object . assign ( bidCopy . adserverTargeting , {
163
+ const bidCopy = Object . assign ( { } , bid ) ;
164
+ bidCopy . adserverTargeting = {
168
165
hb_adid : 'ad_id' ,
169
- } ) ;
166
+ } ;
170
167
171
168
const url = parse ( buildDfpVideoUrl ( {
172
169
adUnit : adUnitsCopy ,
@@ -187,10 +184,10 @@ describe('The DFP video support module', function () {
187
184
} ) ;
188
185
189
186
it ( 'should merge the user-provided cust_params with the default ones' , function ( ) {
190
- const bidCopy = utils . deepClone ( bid ) ;
191
- bidCopy . adserverTargeting = Object . assign ( bidCopy . adserverTargeting , {
187
+ const bidCopy = Object . assign ( { } , bid ) ;
188
+ bidCopy . adserverTargeting = {
192
189
hb_adid : 'ad_id' ,
193
- } ) ;
190
+ } ;
194
191
195
192
const url = parse ( buildDfpVideoUrl ( {
196
193
adUnit : adUnit ,
@@ -210,10 +207,10 @@ describe('The DFP video support module', function () {
210
207
} ) ;
211
208
212
209
it ( 'should merge the user-provided cust-params with the default ones when using url object' , function ( ) {
213
- const bidCopy = utils . deepClone ( bid ) ;
214
- bidCopy . adserverTargeting = Object . assign ( bidCopy . adserverTargeting , {
210
+ const bidCopy = Object . assign ( { } , bid ) ;
211
+ bidCopy . adserverTargeting = {
215
212
hb_adid : 'ad_id' ,
216
- } ) ;
213
+ } ;
217
214
218
215
const url = parse ( buildDfpVideoUrl ( {
219
216
adUnit : adUnit ,
@@ -232,7 +229,7 @@ describe('The DFP video support module', function () {
232
229
} ) ;
233
230
234
231
it ( 'should not overwrite an existing description_url for object input and cache disabled' , function ( ) {
235
- const bidCopy = utils . deepClone ( bid ) ;
232
+ const bidCopy = Object . assign ( { } , bid ) ;
236
233
bidCopy . vastUrl = 'vastUrl.example' ;
237
234
238
235
const url = parse ( buildDfpVideoUrl ( {
0 commit comments