@@ -532,9 +532,7 @@ const ANALYTICS_MESSAGE = {
532
532
'bidwonStatus' : 'success'
533
533
}
534
534
] ,
535
- 'wrapper' : {
536
- 'name' : '10000_fakewrapper_test'
537
- }
535
+ 'wrapperName' : '10000_fakewrapper_test'
538
536
} ;
539
537
540
538
function performStandardAuction ( gptEvents ) {
@@ -1749,34 +1747,6 @@ describe('rubicon analytics adapter', function () {
1749
1747
} ) ;
1750
1748
} ) ;
1751
1749
1752
- describe ( 'wrapper details passed in' , ( ) => {
1753
- it ( 'should correctly pass in the wrapper details if provided' , ( ) => {
1754
- config . setConfig ( { rubicon : {
1755
- wrapperName : '1001_wrapperName' ,
1756
- rule_name : 'na-mobile'
1757
- } } ) ;
1758
-
1759
- rubiconAnalyticsAdapter . enableAnalytics ( {
1760
- options : {
1761
- endpoint : '//localhost:9999/event' ,
1762
- accountId : 1001
1763
- }
1764
- } ) ;
1765
-
1766
- performStandardAuction ( ) ;
1767
-
1768
- expect ( server . requests . length ) . to . equal ( 1 ) ;
1769
- const request = server . requests [ 0 ] ;
1770
- const message = JSON . parse ( request . requestBody ) ;
1771
- expect ( message . wrapper ) . to . deep . equal ( {
1772
- name : '1001_wrapperName' ,
1773
- rule : 'na-mobile'
1774
- } ) ;
1775
-
1776
- rubiconAnalyticsAdapter . disableAnalytics ( ) ;
1777
- } ) ;
1778
- } ) ;
1779
-
1780
1750
it ( 'getHostNameFromReferer correctly grabs hostname from an input URL' , function ( ) {
1781
1751
let inputUrl = 'https://www.prebid.org/some/path?pbjs_debug=true' ;
1782
1752
expect ( getHostNameFromReferer ( inputUrl ) ) . to . equal ( 'www.prebid.org' ) ;
0 commit comments