@@ -69,7 +69,7 @@ test('should produce help for problems', async () => {
6969 const cwd = await gitBootstrap ( 'fixtures/default' ) ;
7070 const actual = await cli ( [ ] , { cwd} ) ( 'foo: bar' ) ;
7171 expect ( actual . stdout ) . toContain (
72- 'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint' ,
72+ 'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
7373 ) ;
7474 expect ( actual . exitCode ) . toBe ( 1 ) ;
7575} ) ;
@@ -78,10 +78,10 @@ test('should produce help for problems with correct helpurl', async () => {
7878 const cwd = await gitBootstrap ( 'fixtures/default' ) ;
7979 const actual = await cli (
8080 [ '-H https://github.com/conventional-changelog/commitlint/#testhelpurl' ] ,
81- { cwd} ,
81+ { cwd}
8282 ) ( 'foo: bar' ) ;
8383 expect ( actual . stdout ) . toContain (
84- 'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl' ,
84+ 'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl'
8585 ) ;
8686 expect ( actual . exitCode ) . toBe ( 1 ) ;
8787} ) ;
@@ -152,7 +152,7 @@ test('should work with husky commitmsg hook and git commit', async () => {
152152 const commit = await execa (
153153 'git' ,
154154 [ 'commit' , '-m' , '"test: this should work"' ] ,
155- { cwd} ,
155+ { cwd}
156156 ) ;
157157
158158 expect ( commit ) . toBeTruthy ( ) ;
@@ -168,7 +168,7 @@ test('should work with husky commitmsg hook in sub packages', async () => {
168168 const commit = await execa (
169169 'git' ,
170170 [ 'commit' , '-m' , '"test: this should work"' ] ,
171- { cwd} ,
171+ { cwd}
172172 ) ;
173173 expect ( commit ) . toBeTruthy ( ) ;
174174} ) ;
@@ -177,15 +177,15 @@ test('should work with husky via commitlint -e $GIT_PARAMS', async () => {
177177 const cwd = await gitBootstrap ( 'fixtures/husky/integration' ) ;
178178 await writePkg (
179179 { husky : { hooks : { 'commit-msg' : `'${ bin } ' -e $GIT_PARAMS` } } } ,
180- { cwd} ,
180+ { cwd}
181181 ) ;
182182
183183 // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
184184 await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
185185 const commit = await execa (
186186 'git' ,
187187 [ 'commit' , '-m' , '"test: this should work"' ] ,
188- { cwd} ,
188+ { cwd}
189189 ) ;
190190 expect ( commit ) . toBeTruthy ( ) ;
191191} ) ;
@@ -194,15 +194,15 @@ test('should work with husky via commitlint -e %GIT_PARAMS%', async () => {
194194 const cwd = await gitBootstrap ( 'fixtures/husky/integration' ) ;
195195 await writePkg (
196196 { husky : { hooks : { 'commit-msg' : `'${ bin } ' -e %GIT_PARAMS%` } } } ,
197- { cwd} ,
197+ { cwd}
198198 ) ;
199199
200200 // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
201201 await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
202202 const commit = await execa (
203203 'git' ,
204204 [ 'commit' , '-m' , '"test: this should work"' ] ,
205- { cwd} ,
205+ { cwd}
206206 ) ;
207207 expect ( commit ) . toBeTruthy ( ) ;
208208} ) ;
@@ -211,15 +211,15 @@ test('should work with husky via commitlint -e $HUSKY_GIT_PARAMS', async () => {
211211 const cwd = await gitBootstrap ( 'fixtures/husky/integration' ) ;
212212 await writePkg (
213213 { husky : { hooks : { 'commit-msg' : `'${ bin } ' -e $HUSKY_GIT_PARAMS` } } } ,
214- { cwd} ,
214+ { cwd}
215215 ) ;
216216
217217 // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
218218 await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
219219 const commit = await execa (
220220 'git' ,
221221 [ 'commit' , '-m' , '"test: this should work"' ] ,
222- { cwd} ,
222+ { cwd}
223223 ) ;
224224 expect ( commit ) . toBeTruthy ( ) ;
225225} ) ;
@@ -228,15 +228,15 @@ test('should work with husky via commitlint -e %HUSKY_GIT_PARAMS%', async () =>
228228 const cwd = await gitBootstrap ( 'fixtures/husky/integration' ) ;
229229 await writePkg (
230230 { husky : { hooks : { 'commit-msg' : `'${ bin } ' -e %HUSKY_GIT_PARAMS%` } } } ,
231- { cwd} ,
231+ { cwd}
232232 ) ;
233233
234234 // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines
235235 await execa ( 'git' , [ 'add' , 'package.json' ] , { cwd} ) ;
236236 const commit = await execa (
237237 'git' ,
238238 [ 'commit' , '-m' , '"test: this should work"' ] ,
239- { cwd} ,
239+ { cwd}
240240 ) ;
241241 expect ( commit ) . toBeTruthy ( ) ;
242242} ) ;
@@ -255,7 +255,7 @@ test('should allow reading of environment variables for edit file, failing if in
255255 const cwd = await gitBootstrap ( 'fixtures/simple' ) ;
256256 await fs . writeFile (
257257 path . join ( cwd , 'commit-msg-file' ) ,
258- 'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.' ,
258+ 'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.'
259259 ) ;
260260 const actual = await cli ( [ '--env' , 'variable' ] , {
261261 cwd,
@@ -267,7 +267,7 @@ test('should allow reading of environment variables for edit file, failing if in
267267test ( 'should pick up parser preset and fail accordingly' , async ( ) => {
268268 const cwd = await gitBootstrap ( 'fixtures/parser-preset' ) ;
269269 const actual = await cli ( [ '--parser-preset' , './parser-preset' ] , { cwd} ) (
270- 'type(scope): subject' ,
270+ 'type(scope): subject'
271271 ) ;
272272 expect ( actual . exitCode ) . toBe ( 1 ) ;
273273 expect ( actual . stdout ) . toContain ( 'may not be empty' ) ;
@@ -276,7 +276,7 @@ test('should pick up parser preset and fail accordingly', async () => {
276276test ( 'should pick up parser preset and succeed accordingly' , async ( ) => {
277277 const cwd = await gitBootstrap ( 'fixtures/parser-preset' ) ;
278278 const actual = await cli ( [ '--parser-preset' , './parser-preset' ] , { cwd} ) (
279- '----type(scope): subject' ,
279+ '----type(scope): subject'
280280 ) ;
281281 expect ( actual . exitCode ) . toBe ( 0 ) ;
282282} ) ;
@@ -322,7 +322,7 @@ test('should handle --amend with signoff', async () => {
322322 await execa (
323323 'git' ,
324324 [ 'commit' , '-m' , '"test: this should work"' , '--signoff' ] ,
325- { cwd} ,
325+ { cwd}
326326 ) ;
327327 const commit = await execa ( 'git' , [ 'commit' , '--amend' , '--no-edit' ] , { cwd} ) ;
328328
@@ -342,7 +342,7 @@ test("it doesn't use parserOpts.commentChar when using edit mode", async () => {
342342 const cwd = await gitBootstrap ( 'fixtures/comment-char' ) ;
343343 await fs . writeFile (
344344 path . join ( cwd , '.git' , 'COMMIT_EDITMSG' ) ,
345- 'header: foo\n\n$body\n' ,
345+ 'header: foo\n\n$body\n'
346346 ) ;
347347
348348 const actual = await cli ( [ '--edit' , '.git/COMMIT_EDITMSG' ] , { cwd} ) ( ) ;
@@ -355,7 +355,7 @@ test('it uses core.commentChar git config when using edit mode', async () => {
355355 await execa ( 'git' , [ 'config' , '--local' , 'core.commentChar' , '$' ] , { cwd} ) ;
356356 await fs . writeFile (
357357 path . join ( cwd , '.git' , 'COMMIT_EDITMSG' ) ,
358- 'header: foo\n\n$body\n' ,
358+ 'header: foo\n\n$body\n'
359359 ) ;
360360
361361 const actual = await cli ( [ '--edit' , '.git/COMMIT_EDITMSG' ] , { cwd} ) ( ) ;
@@ -367,7 +367,7 @@ test('it falls back to # for core.commentChar when using edit mode', async () =>
367367 const cwd = await gitBootstrap ( 'fixtures/comment-char' ) ;
368368 await fs . writeFile (
369369 path . join ( cwd , '.git' , 'COMMIT_EDITMSG' ) ,
370- 'header: foo\n\n#body\n' ,
370+ 'header: foo\n\n#body\n'
371371 ) ;
372372
373373 const actual = await cli ( [ '--edit' , '.git/COMMIT_EDITMSG' ] , { cwd} ) ( ) ;
@@ -408,7 +408,7 @@ test('should fail for invalid formatters from configuration', async () => {
408408 const actual = await cli ( [ ] , { cwd} ) ( 'foo: bar' ) ;
409409
410410 expect ( actual . stderr ) . toContain (
411- 'Using format custom-formatter, but cannot find the module' ,
411+ 'Using format custom-formatter, but cannot find the module'
412412 ) ;
413413 expect ( actual . stdout ) . toEqual ( '' ) ;
414414 expect ( actual . exitCode ) . toBe ( 1 ) ;
@@ -449,7 +449,7 @@ test('should fail for invalid formatters from flags', async () => {
449449 const actual = await cli ( [ '--format' , 'through-flag' ] , { cwd} ) ( 'foo: bar' ) ;
450450
451451 expect ( actual . stderr ) . toContain (
452- 'Using format through-flag, but cannot find the module' ,
452+ 'Using format through-flag, but cannot find the module'
453453 ) ;
454454 expect ( actual . stdout ) . toEqual ( '' ) ;
455455 expect ( actual . exitCode ) . toBe ( 1 ) ;
@@ -458,11 +458,11 @@ test('should fail for invalid formatters from flags', async () => {
458458test ( 'should work with absolute formatter path' , async ( ) => {
459459 const formatterPath = path . resolve (
460460 __dirname ,
461- '../fixtures/custom-formatter/formatters/custom.js' ,
461+ '../fixtures/custom-formatter/formatters/custom.js'
462462 ) ;
463463 const cwd = await gitBootstrap ( 'fixtures/custom-formatter' ) ;
464464 const actual = await cli ( [ '--format' , formatterPath ] , { cwd} ) (
465- 'test: this should work' ,
465+ 'test: this should work'
466466 ) ;
467467
468468 expect ( actual . stdout ) . toContain ( 'custom-formatter-ok' ) ;
@@ -472,10 +472,10 @@ test('should work with absolute formatter path', async () => {
472472test ( 'should work with relative formatter path' , async ( ) => {
473473 const cwd = path . resolve (
474474 await gitBootstrap ( 'fixtures/custom-formatter' ) ,
475- './formatters' ,
475+ './formatters'
476476 ) ;
477477 const actual = await cli ( [ '--format' , './custom.js' ] , { cwd} ) (
478- 'test: this should work' ,
478+ 'test: this should work'
479479 ) ;
480480
481481 expect ( actual . stdout ) . toContain ( 'custom-formatter-ok' ) ;
0 commit comments