@@ -23,16 +23,16 @@ describe('ContentLoader', () => {
2323      props : { 
2424        width : 300 , 
2525        height : 200 , 
26-         preserveAspectRatio : 'xMaxYMid slice' 
27-       } 
26+         preserveAspectRatio : 'xMaxYMid slice' , 
27+       } , 
2828    } ) 
2929
3030    expect ( wrapper . find ( 'svg' ) . attributes ( ) ) . toEqual ( { 
3131      width : '300' , 
3232      height : '200' , 
3333      preserveAspectRatio : 'xMaxYMid slice' , 
3434      version : '1.1' , 
35-       viewBox : '0 0 300 200' 
35+       viewBox : '0 0 300 200' , 
3636    } ) 
3737  } ) 
3838
@@ -41,16 +41,16 @@ describe('ContentLoader', () => {
4141      props : { 
4242        width : 300 , 
4343        height : 200 , 
44-         preserveAspectRatio : 'xMaxYMid slice' 
45-       } 
44+         preserveAspectRatio : 'xMaxYMid slice' , 
45+       } , 
4646    } ) 
4747
4848    expect ( wrapper . find ( 'svg' ) . attributes ( ) ) . toEqual ( { 
4949      width : '300' , 
5050      height : '200' , 
5151      preserveAspectRatio : 'xMaxYMid slice' , 
5252      version : '1.1' , 
53-       viewBox : '0 0 300 200' 
53+       viewBox : '0 0 300 200' , 
5454    } ) 
5555  } ) 
5656
@@ -63,23 +63,23 @@ describe('ContentLoader', () => {
6363      x : '0' , 
6464      y : '0' , 
6565      width : '100%' , 
66-       height : '100%' 
66+       height : '100%' , 
6767    } ) 
6868  } ) 
6969
7070  it ( 'draws a clipPath with a unique ID' ,  ( )  =>  { 
7171    const  wrapper  =  mount ( ContentLoader ) 
7272
7373    expect ( wrapper . find ( 'defs clipPath' ) . attributes ( ) ) . toEqual ( { 
74-       id : wrapper . vm . idClip 
74+       id : wrapper . vm . idClip , 
7575    } ) 
7676  } ) 
7777
7878  it ( 'draws a linear gradient with a unique ID' ,  ( )  =>  { 
7979    const  wrapper  =  mount ( ContentLoader ) 
8080
8181    expect ( wrapper . find ( 'defs linearGradient' ) . attributes ( ) ) . toEqual ( { 
82-       id : wrapper . vm . idGradient 
82+       id : wrapper . vm . idGradient , 
8383    } ) 
8484  } ) 
8585
@@ -91,17 +91,17 @@ describe('ContentLoader', () => {
9191    expect ( stops [ 0 ] . attributes ( ) ) . toEqual ( { 
9292      offset : '0%' , 
9393      'stop-color' : '#f9f9f9' , 
94-       'stop-opacity' : '1' 
94+       'stop-opacity' : '1' , 
9595    } ) 
9696    expect ( stops [ 1 ] . attributes ( ) ) . toEqual ( { 
9797      offset : '50%' , 
9898      'stop-color' : '#ecebeb' , 
99-       'stop-opacity' : '1' 
99+       'stop-opacity' : '1' , 
100100    } ) 
101101    expect ( stops [ 2 ] . attributes ( ) ) . toEqual ( { 
102102      offset : '100%' , 
103103      'stop-color' : '#f9f9f9' , 
104-       'stop-opacity' : '1' 
104+       'stop-opacity' : '1' , 
105105    } ) 
106106  } ) 
107107
@@ -114,27 +114,27 @@ describe('ContentLoader', () => {
114114      attributeName : 'offset' , 
115115      values : '-2; 1' , 
116116      dur : '2s' , 
117-       repeatCount : 'indefinite' 
117+       repeatCount : 'indefinite' , 
118118    } ) 
119119    expect ( animations [ 1 ] . attributes ( ) ) . toEqual ( { 
120120      attributeName : 'offset' , 
121121      values : '-1.5; 1.5' , 
122122      dur : '2s' , 
123-       repeatCount : 'indefinite' 
123+       repeatCount : 'indefinite' , 
124124    } ) 
125125    expect ( animations [ 2 ] . attributes ( ) ) . toEqual ( { 
126126      attributeName : 'offset' , 
127127      values : '-1; 2' , 
128128      dur : '2s' , 
129-       repeatCount : 'indefinite' 
129+       repeatCount : 'indefinite' , 
130130    } ) 
131131  } ) 
132132
133133  it ( 'does not animate if animate prop is false' ,  ( )  =>  { 
134134    const  wrapper  =  mount ( ContentLoader ,  { 
135135      props : { 
136-         animate : false 
137-       } 
136+         animate : false , 
137+       } , 
138138    } ) 
139139
140140    expect ( wrapper . findAll ( 'defs linearGradient animate' ) . length ) . toBe ( 0 ) 
@@ -149,15 +149,15 @@ describe('ContentLoader', () => {
149149      rx : '5' , 
150150      ry : '5' , 
151151      width : '100%' , 
152-       height : '100%' 
152+       height : '100%' , 
153153    } ) 
154154  } ) 
155155
156156  it ( 'outputs the default slot within the clipPath' ,  ( )  =>  { 
157157    const  wrapper  =  mount ( ContentLoader ,  { 
158158      slots : { 
159-         default : '<circle cx="30" cy="30" r="30" />' 
160-       } 
159+         default : '<circle cx="30" cy="30" r="30" />' , 
160+       } , 
161161    } ) 
162162
163163    expect ( wrapper . find ( 'defs clipPath circle' ) . html ( ) ) . toEqual ( 
@@ -168,21 +168,21 @@ describe('ContentLoader', () => {
168168  it ( 'use the baseUrl to link the gradient & clip path' ,  ( )  =>  { 
169169    const  wrapper  =  mount ( ContentLoader ,  { 
170170      props : { 
171-         baseUrl : '/path' 
172-       } 
171+         baseUrl : '/path' , 
172+       } , 
173173    } ) 
174174
175175    expect ( wrapper . find ( 'rect' ) . attributes ( ) ) . toMatchObject ( { 
176176      style : `fill: url(/path#${ wrapper . vm . idGradient }  );` , 
177-       'clip-path' : `url(/path#${ wrapper . vm . idClip }  )` 
177+       'clip-path' : `url(/path#${ wrapper . vm . idClip }  )` , 
178178    } ) 
179179  } ) 
180180
181181  it ( 'use the uniqueKey to generate static IDs' ,  ( )  =>  { 
182182    const  wrapper  =  mount ( ContentLoader ,  { 
183183      props : { 
184-         uniqueKey : 'unique' 
185-       } 
184+         uniqueKey : 'unique' , 
185+       } , 
186186    } ) 
187187
188188    expect ( wrapper . vm . idClip ) . toEqual ( 'unique-idClip' ) 
@@ -193,8 +193,8 @@ describe('ContentLoader', () => {
193193    const  wrapper  =  mount ( ContentLoader ,  { 
194194      props : { 
195195        class : 'loader' , 
196-         id : 'loader' 
197-       } 
196+         id : 'loader' , 
197+       } , 
198198    } ) 
199199
200200    expect ( wrapper . find ( 'svg' ) . classes ( ) ) . toEqual ( [ 'loader' ] ) 
0 commit comments