@@ -14,7 +14,7 @@ const REMOTE_NAME = 'origin'
1414const TRACKED_FILE = 'a/tracked-file.txt'
1515const UNTRACKED_FILE = 'b/untracked-file.txt'
1616
17- const DEFAULT_BRANCH = 'tests/master '
17+ const DEFAULT_BRANCH = 'tests/main '
1818const NOT_BASE_BRANCH = 'tests/branch-that-is-not-the-base'
1919const NOT_EXIST_BRANCH = 'tests/branch-that-does-not-exist'
2020
@@ -108,10 +108,10 @@ describe('create-or-update-branch tests', () => {
108108 // Check there are no local changes that might be destroyed by running these tests
109109 expect ( await git . isDirty ( true ) ) . toBeFalsy ( )
110110 // Fetch the default branch
111- await git . fetch ( [ 'master :refs/remotes/origin/master ' ] )
111+ await git . fetch ( [ 'main :refs/remotes/origin/main ' ] )
112112
113113 // Create a "not base branch" for the test run
114- await git . checkout ( 'master ' )
114+ await git . checkout ( 'main ' )
115115 await git . checkout ( NOT_BASE_BRANCH , 'HEAD' )
116116 await createFile ( TRACKED_FILE )
117117 await git . exec ( [ 'add' , '-A' ] )
@@ -123,7 +123,7 @@ describe('create-or-update-branch tests', () => {
123123 ] )
124124
125125 // Create a new default branch for the test run with a tracked file
126- await git . checkout ( 'master ' )
126+ await git . checkout ( 'main ' )
127127 await git . checkout ( DEFAULT_BRANCH , 'HEAD' )
128128 await createFile ( TRACKED_FILE )
129129 await git . exec ( [ 'add' , '-A' ] )
0 commit comments