@@ -2,13 +2,13 @@ import { parseCreativeCompanion } from '../src/parser/creative_companion_parser'
22import { getNodesFromXml } from './utils/utils' ;
33import { companionAds } from './samples/companion_ads' ;
44
5- describe ( 'parseCreativeCompanion' , function ( ) {
5+ describe ( 'parseCreativeCompanion' , function ( ) {
66 const creativeElement = getNodesFromXml ( companionAds ) ;
77 const creativeAttributes = {
88 id : '1' ,
99 adId : '1234' ,
1010 sequence : '1' ,
11- apiFramework : null
11+ apiFramework : null ,
1212 } ;
1313 let creative = null ;
1414
@@ -25,7 +25,7 @@ describe('parseCreativeCompanion', function() {
2525 id : '1' ,
2626 adId : '1234' ,
2727 sequence : '1' ,
28- apiFramework : null
28+ apiFramework : null ,
2929 } ) ;
3030 } ) ;
3131
@@ -55,20 +55,20 @@ describe('parseCreativeCompanion', function() {
5555 apiFramework : 'VPAID' ,
5656 adSlotID : '1' ,
5757 pxratio : '2' ,
58- renderingMode : 'end-card'
58+ renderingMode : 'end-card' ,
5959 } ) ;
6060 } ) ;
6161
6262 it ( 'gets the static resources and their creative types' , ( ) => {
6363 expect ( companion . staticResources ) . toEqual ( [
6464 {
6565 url : 'http://example.com/companion1-static-resource1' ,
66- creativeType : 'image/jpeg'
66+ creativeType : 'image/jpeg' ,
6767 } ,
6868 {
6969 url : 'http://example.com/companion1-static-resource2' ,
70- creativeType : 'image/jpeg'
71- }
70+ creativeType : 'image/jpeg' ,
71+ } ,
7272 ] ) ;
7373 expect ( companion . iframeResources ) . toEqual ( [ ] ) ;
7474 expect ( companion . htmlResources ) . toEqual ( [ ] ) ;
@@ -80,7 +80,7 @@ describe('parseCreativeCompanion', function() {
8080
8181 it ( 'gets tracking events' , ( ) => {
8282 expect ( companion . trackingEvents ) . toEqual ( {
83- creativeView : [ 'http://example.com/companion1-creativeview' ]
83+ creativeView : [ 'http://example.com/companion1-creativeview' ] ,
8484 } ) ;
8585 } ) ;
8686
@@ -94,12 +94,12 @@ describe('parseCreativeCompanion', function() {
9494 expect ( companion . companionClickTrackingURLTemplates ) . toEqual ( [
9595 {
9696 id : '1' ,
97- url : 'http://example.com/companion1-clicktracking-first'
97+ url : 'http://example.com/companion1-clicktracking-first' ,
9898 } ,
9999 {
100100 id : '2' ,
101- url : 'http://example.com/companion1-clicktracking-second'
102- }
101+ url : 'http://example.com/companion1-clicktracking-second' ,
102+ } ,
103103 ] ) ;
104104 } ) ;
105105
@@ -132,14 +132,14 @@ describe('parseCreativeCompanion', function() {
132132 apiFramework : 'VPAID' ,
133133 adSlotID : '2' ,
134134 pxratio : '1' ,
135- renderingMode : 'concurrent'
135+ renderingMode : 'concurrent' ,
136136 } ) ;
137137 } ) ;
138138
139139 it ( 'gets the iframe resources' , ( ) => {
140140 expect ( companion . staticResources ) . toEqual ( [ ] ) ;
141141 expect ( companion . iframeResources ) . toEqual ( [
142- 'http://www.example.com/companion2-example.php'
142+ 'http://www.example.com/companion2-example.php' ,
143143 ] ) ;
144144 expect ( companion . htmlResources ) . toEqual ( [ ] ) ;
145145 } ) ;
@@ -150,7 +150,7 @@ describe('parseCreativeCompanion', function() {
150150
151151 it ( 'gets tracking events' , ( ) => {
152152 expect ( companion . trackingEvents ) . toEqual ( {
153- creativeView : [ 'http://example.com/companion2-creativeview' ]
153+ creativeView : [ 'http://example.com/companion2-creativeview' ] ,
154154 } ) ;
155155 } ) ;
156156
@@ -193,15 +193,15 @@ describe('parseCreativeCompanion', function() {
193193 apiFramework : 'VPAID' ,
194194 adSlotID : '3' ,
195195 pxratio : '1' ,
196- renderingMode : 'default'
196+ renderingMode : 'default' ,
197197 } ) ;
198198 } ) ;
199199
200200 it ( 'gets the html resources' , ( ) => {
201201 expect ( companion . staticResources ) . toEqual ( [ ] ) ;
202202 expect ( companion . iframeResources ) . toEqual ( [ ] ) ;
203203 expect ( companion . htmlResources ) . toEqual ( [
204- '<a href="http://www.example.com" target="_blank">Some call to action HTML!</a>'
204+ '<a href="http://www.example.com" target="_blank">Some call to action HTML!</a>' ,
205205 ] ) ;
206206 } ) ;
207207
@@ -211,7 +211,7 @@ describe('parseCreativeCompanion', function() {
211211
212212 it ( 'gets tracking events' , ( ) => {
213213 expect ( companion . trackingEvents ) . toEqual ( {
214- creativeView : [ 'http://example.com/companion3-creativeview' ]
214+ creativeView : [ 'http://example.com/companion3-creativeview' ] ,
215215 } ) ;
216216 } ) ;
217217
0 commit comments