11import  { git }  from  '@commitlint/test' ; 
2- import  test  from  'ava' ; 
32import  execa  from  'execa' ; 
43import  *  as  sander  from  '@marionebl/sander' ; 
54
65import  read  from  '.' ; 
76
8- test ( 'get edit commit message specified by the `edit` flag' ,  async  t  =>  { 
7+ test ( 'get edit commit message specified by the `edit` flag' ,  async  ( )  =>  { 
98	const  cwd  =  await  git . bootstrap ( ) ; 
109
1110	await  sander . writeFile ( cwd ,  'commit-msg-file' ,  'foo' ) ; 
1211
1312	const  expected  =  [ 'foo\n' ] ; 
1413	const  actual  =  await  read ( { edit : 'commit-msg-file' ,  cwd} ) ; 
15- 	t . deepEqual ( actual ,   expected ) ; 
14+ 	expect ( actual ) . toEqual ( expected ) ; 
1615} ) ; 
1716
18- test ( 'get edit commit message from git root' ,  async  t  =>  { 
17+ test ( 'get edit commit message from git root' ,  async  ( )  =>  { 
1918	const  cwd  =  await  git . bootstrap ( ) ; 
2019
2120	await  sander . writeFile ( cwd ,  'alpha.txt' ,  'alpha' ) ; 
2221	await  execa ( 'git' ,  [ 'add' ,  '.' ] ,  { cwd} ) ; 
2322	await  execa ( 'git' ,  [ 'commit' ,  '-m' ,  'alpha' ] ,  { cwd} ) ; 
2423	const  expected  =  [ 'alpha\n\n' ] ; 
2524	const  actual  =  await  read ( { edit : true ,  cwd} ) ; 
26- 	t . deepEqual ( actual ,   expected ) ; 
25+ 	expect ( actual ) . toEqual ( expected ) ; 
2726} ) ; 
2827
29- test ( 'get history commit messages' ,  async  t  =>  { 
28+ test ( 'get history commit messages' ,  async  ( )  =>  { 
3029	const  cwd  =  await  git . bootstrap ( ) ; 
3130	await  sander . writeFile ( cwd ,  'alpha.txt' ,  'alpha' ) ; 
3231	await  execa ( 'git' ,  [ 'add' ,  'alpha.txt' ] ,  { cwd} ) ; 
@@ -36,10 +35,10 @@ test('get history commit messages', async t => {
3635
3736	const  expected  =  [ 'remove alpha\n\n' ,  'alpha\n\n' ] ; 
3837	const  actual  =  await  read ( { cwd} ) ; 
39- 	t . deepEqual ( actual ,   expected ) ; 
38+ 	expect ( actual ) . toEqual ( expected ) ; 
4039} ) ; 
4140
42- test ( 'get edit commit message from git subdirectory' ,  async  t  =>  { 
41+ test ( 'get edit commit message from git subdirectory' ,  async  ( )  =>  { 
4342	const  cwd  =  await  git . bootstrap ( ) ; 
4443	await  sander . mkdir ( cwd ,  'beta' ) ; 
4544	await  sander . writeFile ( cwd ,  'beta/beta.txt' ,  'beta' ) ; 
@@ -49,5 +48,5 @@ test('get edit commit message from git subdirectory', async t => {
4948
5049	const  expected  =  [ 'beta\n\n' ] ; 
5150	const  actual  =  await  read ( { edit : true ,  cwd} ) ; 
52- 	t . deepEqual ( actual ,   expected ) ; 
51+ 	expect ( actual ) . toEqual ( expected ) ; 
5352} ) ; 
0 commit comments