@@ -17,8 +17,8 @@ describe("formatTaskBranches", () => {
1717 const branches = [ "feat/TOKEN-800_new-feature" , "fix/TOKEN-123_some-fix" ] ;
1818 const result = formatTaskBranches ( branches , DEFAULT_CONFIG ) ;
1919 expect ( result ) . toEqual ( [
20- "feat/TOKEN-800_new-feature < https://test-instance.org/browse/TOKEN-800> " ,
21- "fix/TOKEN-123_some-fix < https://test-instance.org/browse/TOKEN-123> "
20+ "feat/TOKEN-800_new-feature https://test-instance.org/browse/TOKEN-800" ,
21+ "fix/TOKEN-123_some-fix https://test-instance.org/browse/TOKEN-123"
2222 ] ) ;
2323 } ) ;
2424
@@ -30,8 +30,8 @@ describe("formatTaskBranches", () => {
3030 } ;
3131 const result = formatTaskBranches ( branches , config ) ;
3232 expect ( result ) . toEqual ( [
33- "fix/TOKEN-123_fix < https://example.com/browse/TOKEN-123> " ,
34- "feat/PROJECT-45_add-feature < https://example.com/browse/PROJECT-45> "
33+ "fix/TOKEN-123_fix https://example.com/browse/TOKEN-123" ,
34+ "feat/PROJECT-45_add-feature https://example.com/browse/PROJECT-45"
3535 ] ) ;
3636 } ) ;
3737
@@ -43,8 +43,8 @@ describe("formatTaskBranches", () => {
4343 } ;
4444 const result = formatTaskBranches ( branches , config ) ;
4545 expect ( result ) . toEqual ( [
46- "fix/#123_fix < https://github.com/org/repo/issues/123> " ,
47- "feat/#45_add-feature < https://github.com/org/repo/issues/45> "
46+ "fix/#123_fix https://github.com/org/repo/issues/123" ,
47+ "feat/#45_add-feature https://github.com/org/repo/issues/45"
4848 ] ) ;
4949 } ) ;
5050
@@ -98,15 +98,15 @@ describe("outputMergedBranches", () => {
9898 const branches = [ "feat/TOKEN-800_new-feature" , "fix/TOKEN-123_some-fix" ] ;
9999
100100 outputMergedBranches ( branches , "master" , DEFAULT_CONFIG ) ;
101- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "2 branches merged into ' master' :" ) ;
101+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "2 branches merged into master:" ) ;
102102 const branchOutput = [
103- "feat/TOKEN-800_new-feature < https://test-instance.org/browse/TOKEN-800> " ,
104- "fix/TOKEN-123_some-fix < https://test-instance.org/browse/TOKEN-123> "
103+ "feat/TOKEN-800_new-feature https://test-instance.org/browse/TOKEN-800" ,
104+ "fix/TOKEN-123_some-fix https://test-instance.org/browse/TOKEN-123"
105105 ] ;
106106 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 2 , branchOutput . join ( "\n" ) ) ;
107107
108108 const localDelete = `git branch --delete ${ branches . join ( " " ) } ` ;
109- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 2 branches automatically. " ) ;
109+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 2 branches automatically" ) ;
110110 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 4 , "\nDelete locally:" ) ;
111111 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 5 , ` ${ localDelete } ` ) ;
112112 expect ( infoSpy ) . toHaveBeenCalledTimes ( 5 ) ;
@@ -118,16 +118,16 @@ describe("outputMergedBranches", () => {
118118 const fetchRemoteMock = vi . spyOn ( repoMethods , "fetchRemoteBranches" ) . mockReturnValue ( branches ) ;
119119
120120 outputMergedBranches ( branches , "master" , DEFAULT_CONFIG ) ;
121- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "2 branches merged into ' master' :" ) ;
121+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "2 branches merged into master:" ) ;
122122 const branchOutput = [
123- "feat/TOKEN-800_new-feature < https://test-instance.org/browse/TOKEN-800> " ,
124- "fix/TOKEN-123_some-fix < https://test-instance.org/browse/TOKEN-123> "
123+ "feat/TOKEN-800_new-feature https://test-instance.org/browse/TOKEN-800" ,
124+ "fix/TOKEN-123_some-fix https://test-instance.org/browse/TOKEN-123"
125125 ] ;
126126 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 2 , branchOutput . join ( "\n" ) ) ;
127127
128128 const localDelete = `git branch --delete ${ branches . join ( " " ) } ` ;
129129 const remoteDelete = `git push origin --delete ${ branches . join ( " " ) } ` ;
130- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 2 branches automatically. " ) ;
130+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 2 branches automatically" ) ;
131131 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 4 , "\nDelete locally:" ) ;
132132 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 5 , ` ${ localDelete } ` ) ;
133133 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 6 , "\nDelete remotely:" ) ;
@@ -142,11 +142,11 @@ describe("outputMergedBranches", () => {
142142 const branches = [ "feat/TOKEN-800_new-feature" ] ;
143143
144144 outputMergedBranches ( branches , "master" , DEFAULT_CONFIG ) ;
145- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "1 branch merged into ' master' :" ) ;
146- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 2 , "feat/TOKEN-800_new-feature < https://test-instance.org/browse/TOKEN-800> " ) ;
145+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 1 , "1 branch merged into master:" ) ;
146+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 2 , "feat/TOKEN-800_new-feature https://test-instance.org/browse/TOKEN-800" ) ;
147147
148148 const localDelete = `git branch --delete ${ branches . join ( " " ) } ` ;
149- expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 1 branch automatically. " ) ;
149+ expect ( infoSpy ) . toHaveBeenNthCalledWith ( 3 , "\nUse --delete to delete 1 branch automatically" ) ;
150150 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 4 , "\nDelete locally:" ) ;
151151 expect ( infoSpy ) . toHaveBeenNthCalledWith ( 5 , ` ${ localDelete } ` ) ;
152152 expect ( infoSpy ) . toHaveBeenCalledTimes ( 5 ) ;
@@ -155,7 +155,7 @@ describe("outputMergedBranches", () => {
155155
156156 it ( "should log a message when no branches are merged" , ( ) => {
157157 outputMergedBranches ( [ ] , "master" , DEFAULT_CONFIG ) ;
158- expect ( infoSpy ) . toHaveBeenCalledWith ( "No branches merged into ' master'. " ) ;
158+ expect ( infoSpy ) . toHaveBeenCalledWith ( "No branches merged into master" ) ;
159159 expect ( infoSpy ) . toHaveBeenCalledTimes ( 1 ) ;
160160 expect ( warnSpy ) . not . toHaveBeenCalled ( ) ;
161161 } ) ;
@@ -166,7 +166,7 @@ describe("outputMergedBranches", () => {
166166
167167 outputMergedBranches ( branches , "master" , config ) ;
168168 expect ( infoSpy ) . toHaveBeenCalledTimes ( 5 ) ;
169- expect ( warnSpy ) . toHaveBeenCalledWith ( "' invalid-url' is not a valid URL. Skipped formatting. " ) ;
169+ expect ( warnSpy ) . toHaveBeenCalledWith ( "invalid-url is not a valid URL. Skipped formatting" ) ;
170170 expect ( warnSpy ) . toHaveBeenCalledTimes ( 1 ) ;
171171 } ) ;
172172
@@ -179,7 +179,7 @@ describe("outputMergedBranches", () => {
179179 outputMergedBranches ( branches , "master" , DEFAULT_CONFIG , { deleteBranches : true } ) ;
180180
181181 expect ( deleteMock ) . toHaveBeenCalledWith ( branches , branches ) ;
182- expect ( infoSpy ) . toHaveBeenCalledWith ( "Branches deleted successfully. " ) ;
182+ expect ( infoSpy ) . toHaveBeenCalledWith ( "Branches deleted successfully" ) ;
183183
184184 deleteMock . mockRestore ( ) ;
185185 fetchRemoteMock . mockRestore ( ) ;
0 commit comments