@@ -81,7 +81,9 @@ describe('smarticoBidAdapter', function () {
81
81
ttl : 30 ,
82
82
bannerFormatWidth : 300 ,
83
83
bannerFormatHeight : 250 ,
84
- bannerFormatAlias : 'medium_rectangle'
84
+ bannerFormatAlias : 'medium_rectangle' ,
85
+ domains : [ 'www.advertiser.com' ] ,
86
+ title : 'Advertiser'
85
87
} ]
86
88
} ;
87
89
let expectedResponse = [ {
@@ -93,7 +95,11 @@ describe('smarticoBidAdapter', function () {
93
95
currency : 'EUR' ,
94
96
netRevenue : false , // gross
95
97
ttl : 30 ,
96
- ad : '<script id="smartico-widget-testPlacementId-0" async defer type="text/javascript" src="https://trmads.eu/get?token=FNVzUGZn9ebpIOoheh3kEJ2GQ6H6IyMH39sHXaya&auction-id=5kaj89l8-3456-2s56-c455-4g6h78jsdfgf&from-auction-buffer=1&own_session=1&ad=987654&scriptid=smartico-widget-testPlacementId-0&banner-format=medium_rectangle"><\/script>' } ] ;
98
+ ad : '<script id="smartico-widget-testPlacementId-0" async defer type="text/javascript" src="https://trmads.eu/get?token=FNVzUGZn9ebpIOoheh3kEJ2GQ6H6IyMH39sHXaya&auction-id=5kaj89l8-3456-2s56-c455-4g6h78jsdfgf&from-auction-buffer=1&own_session=1&ad=987654&scriptid=smartico-widget-testPlacementId-0&banner-format=medium_rectangle"><\/script>' ,
99
+ meta : {
100
+ advertiserDomains : [ 'www.advertiser.com' ] ,
101
+ advertiserName : 'Advertiser'
102
+ } } ] ;
97
103
let result = spec . interpretResponse ( serverResponse , bidRequest ) ;
98
104
it ( 'should contain correct creativeId' , function ( ) {
99
105
expect ( result [ 0 ] . creativeId ) . to . equal ( expectedResponse [ 0 ] . creativeId )
@@ -122,5 +128,8 @@ describe('smarticoBidAdapter', function () {
122
128
it ( 'should contain correct ad content' , function ( ) {
123
129
expect ( result [ 0 ] . ad ) . to . equal ( expectedResponse [ 0 ] . ad )
124
130
} ) ;
131
+ it ( 'should contain correct meta content' , function ( ) {
132
+ expect ( result [ 0 ] . meta ) . to . deep . equal ( expectedResponse [ 0 ] . meta )
133
+ } ) ;
125
134
} ) ;
126
135
} ) ;
0 commit comments