@@ -758,9 +758,9 @@ describe('Livewrapped adapter tests', function () {
758
758
expect ( data ) . to . deep . equal ( expectedQuery ) ;
759
759
} ) ;
760
760
761
- it ( 'should use params.url, then config pageUrl, then bidderRequest.refererInfo.referer ' , function ( ) {
761
+ it ( 'should use params.url, then bidderRequest.refererInfo.page ' , function ( ) {
762
762
let testRequest = clone ( bidderRequest ) ;
763
- testRequest . refererInfo = { referer : 'https://www.topurl.com' } ;
763
+ testRequest . refererInfo = { page : 'https://www.topurl.com' } ;
764
764
765
765
let result = spec . buildRequests ( testRequest . bids , testRequest ) ;
766
766
let data = JSON . parse ( result . data ) ;
@@ -773,19 +773,6 @@ describe('Livewrapped adapter tests', function () {
773
773
data = JSON . parse ( result . data ) ;
774
774
775
775
expect ( data . url ) . to . equal ( 'https://www.topurl.com' ) ;
776
-
777
- let origGetConfig = config . getConfig ;
778
- sandbox . stub ( config , 'getConfig' ) . callsFake ( function ( key ) {
779
- if ( key === 'pageUrl' ) {
780
- return 'https://www.configurl.com' ;
781
- }
782
- return origGetConfig . apply ( config , arguments ) ;
783
- } ) ;
784
-
785
- result = spec . buildRequests ( testRequest . bids , testRequest ) ;
786
- data = JSON . parse ( result . data ) ;
787
-
788
- expect ( data . url ) . to . equal ( 'https://www.configurl.com' ) ;
789
776
} ) ;
790
777
791
778
it ( 'should make use of pubcid if available' , function ( ) {
0 commit comments