@@ -3,16 +3,16 @@ import {
33 CopyrightHeaderStatus ,
44 getUpdatedCopyrightHeader ,
55 php ,
6- phtml
6+ phtml ,
77} from '../src'
88
99describe ( 'php' , ( ) => {
1010 const options : CopyrightHeaderOptions = {
1111 lines : [
1212 'This file is part of @splish-me/copyright-headers' ,
1313 '' ,
14- 'Copyright (c) 2018 Splish UG (haftungsbeschränkt)'
15- ]
14+ 'Copyright (c) 2018 Splish UG (haftungsbeschränkt)' ,
15+ ] ,
1616 }
1717
1818 test ( 'does not start with <?php' , ( ) => {
@@ -76,7 +76,7 @@ echo "foo bar";
7676`
7777 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
7878 ...options ,
79- shouldUpdate : ( ) => true
79+ shouldUpdate : ( ) => true ,
8080 } )
8181
8282 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
@@ -99,7 +99,7 @@ echo "foo bar";
9999`
100100 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
101101 ...options ,
102- shouldUpdate : ( ) => false
102+ shouldUpdate : ( ) => false ,
103103 } )
104104
105105 expect ( status ) . toEqual ( CopyrightHeaderStatus . External )
@@ -121,7 +121,7 @@ echo "foo bar";
121121`
122122 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
123123 ...options ,
124- shouldUpdate : ( ) => true
124+ shouldUpdate : ( ) => true ,
125125 } )
126126
127127 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
@@ -153,7 +153,7 @@ echo "foo bar";
153153`
154154 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
155155 ...options ,
156- shouldUpdate : ( ) => true
156+ shouldUpdate : ( ) => true ,
157157 } )
158158
159159 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
@@ -176,8 +176,8 @@ describe('phtml', () => {
176176 lines : [
177177 'This file is part of @splish-me/copyright-headers' ,
178178 '' ,
179- 'Copyright (c) 2018 Splish UG (haftungsbeschränkt)'
180- ]
179+ 'Copyright (c) 2018 Splish UG (haftungsbeschränkt)' ,
180+ ] ,
181181 }
182182
183183 test ( 'does not start with <?php' , ( ) => {
@@ -224,7 +224,7 @@ echo "foo bar";
224224`
225225 const [ status , output ] = getUpdatedCopyrightHeader ( input , phtml , {
226226 ...options ,
227- shouldUpdate : ( ) => true
227+ shouldUpdate : ( ) => true ,
228228 } )
229229
230230 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
@@ -249,7 +249,7 @@ echo "foo bar";
249249`
250250 const [ status , output ] = getUpdatedCopyrightHeader ( input , phtml , {
251251 ...options ,
252- shouldUpdate : ( ) => false
252+ shouldUpdate : ( ) => false ,
253253 } )
254254
255255 expect ( status ) . toEqual ( CopyrightHeaderStatus . External )
@@ -272,7 +272,7 @@ echo "foo bar";
272272`
273273 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
274274 ...options ,
275- shouldUpdate : ( ) => true
275+ shouldUpdate : ( ) => true ,
276276 } )
277277
278278 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
@@ -306,7 +306,7 @@ echo "foo bar";
306306`
307307 const [ status , output ] = getUpdatedCopyrightHeader ( input , php , {
308308 ...options ,
309- shouldUpdate : ( ) => true
309+ shouldUpdate : ( ) => true ,
310310 } )
311311
312312 expect ( status ) . toEqual ( CopyrightHeaderStatus . Changed )
0 commit comments