@@ -28,7 +28,7 @@ describe('lint-staged', () => {
28
28
29
29
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchA )
30
30
31
- await execGit ( [ 'checkout' , 'master ' ] )
31
+ await execGit ( [ 'checkout' , 'main ' ] )
32
32
33
33
// Create another branch
34
34
await execGit ( [ 'checkout' , '-b' , 'branch-b' ] )
@@ -39,7 +39,7 @@ describe('lint-staged', () => {
39
39
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchBFixed )
40
40
41
41
// Merge first branch
42
- await execGit ( [ 'checkout' , 'master ' ] )
42
+ await execGit ( [ 'checkout' , 'main ' ] )
43
43
await execGit ( [ 'merge' , 'branch-a' ] )
44
44
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchA )
45
45
expect ( await execGit ( [ 'log' , '-1' , '--pretty=%B' ] ) ) . toMatch ( 'commit a' )
@@ -90,7 +90,7 @@ describe('lint-staged', () => {
90
90
91
91
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchA )
92
92
93
- await execGit ( [ 'checkout' , 'master ' ] )
93
+ await execGit ( [ 'checkout' , 'main ' ] )
94
94
95
95
// Create another branch
96
96
await execGit ( [ 'checkout' , '-b' , 'branch-b' ] )
@@ -103,7 +103,7 @@ describe('lint-staged', () => {
103
103
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchBFixed )
104
104
105
105
// Merge first branch
106
- await execGit ( [ 'checkout' , 'master ' ] )
106
+ await execGit ( [ 'checkout' , 'main ' ] )
107
107
await execGit ( [ 'merge' , 'branch-a' ] )
108
108
expect ( await readFile ( 'test.js' ) ) . toEqual ( fileInBranchA )
109
109
expect ( await execGit ( [ 'log' , '-1' , '--pretty=%B' ] ) ) . toMatch ( 'commit a' )
@@ -220,7 +220,7 @@ describe('lint-staged', () => {
220
220
await execGit ( [ 'commit' , '-m' , 'Local changes' ] )
221
221
222
222
// Initiate merge with conflict
223
- await expect ( execGit ( [ 'merge' , 'master ' ] ) ) . rejects . toThrow ( 'Merge conflict' )
223
+ await expect ( execGit ( [ 'merge' , 'main ' ] ) ) . rejects . toThrow ( 'Merge conflict' )
224
224
225
225
expect ( await execGit ( [ 'status' , '--porcelain' ] ) ) . toMatchInlineSnapshot ( `
226
226
"UU modifiedFileConflictDiscardLocal.js
0 commit comments