@@ -14,7 +14,7 @@ const REMOTE_NAME = 'origin'
14
14
const TRACKED_FILE = 'a/tracked-file.txt'
15
15
const UNTRACKED_FILE = 'b/untracked-file.txt'
16
16
17
- const DEFAULT_BRANCH = 'tests/master '
17
+ const DEFAULT_BRANCH = 'tests/main '
18
18
const NOT_BASE_BRANCH = 'tests/branch-that-is-not-the-base'
19
19
const NOT_EXIST_BRANCH = 'tests/branch-that-does-not-exist'
20
20
@@ -108,10 +108,10 @@ describe('create-or-update-branch tests', () => {
108
108
// Check there are no local changes that might be destroyed by running these tests
109
109
expect ( await git . isDirty ( true ) ) . toBeFalsy ( )
110
110
// Fetch the default branch
111
- await git . fetch ( [ 'master :refs/remotes/origin/master ' ] )
111
+ await git . fetch ( [ 'main :refs/remotes/origin/main ' ] )
112
112
113
113
// Create a "not base branch" for the test run
114
- await git . checkout ( 'master ' )
114
+ await git . checkout ( 'main ' )
115
115
await git . checkout ( NOT_BASE_BRANCH , 'HEAD' )
116
116
await createFile ( TRACKED_FILE )
117
117
await git . exec ( [ 'add' , '-A' ] )
@@ -123,7 +123,7 @@ describe('create-or-update-branch tests', () => {
123
123
] )
124
124
125
125
// Create a new default branch for the test run with a tracked file
126
- await git . checkout ( 'master ' )
126
+ await git . checkout ( 'main ' )
127
127
await git . checkout ( DEFAULT_BRANCH , 'HEAD' )
128
128
await createFile ( TRACKED_FILE )
129
129
await git . exec ( [ 'add' , '-A' ] )
0 commit comments