@@ -75,7 +75,7 @@ describe('cherrypickAndCreatePullRequest', () => {
75
75
expect ( axiosPostMock ) . toHaveBeenCalledTimes ( 2 ) ;
76
76
const [ apiEndpoint , payload ] = axiosPostMock . mock . calls [ 0 ] ;
77
77
expect ( apiEndpoint ) . toBe (
78
- 'https://api.github.com/repos/elastic/kibana/pulls?access_token=undefined '
78
+ 'https://api.github.com/repos/elastic/kibana/pulls'
79
79
) ;
80
80
expect ( payload . title ) . toBe (
81
81
'[6.x] myCommitMessage (#1000) | myOtherCommitMessage (#2000)'
@@ -95,7 +95,7 @@ myPrSuffix`
95
95
const [ apiEndpoint , labels ] = axiosPostMock . mock . calls [ 1 ] ;
96
96
97
97
expect ( apiEndpoint ) . toBe (
98
- 'https://api.github.com/repos/elastic/kibana/issues/1337/labels?access_token=undefined '
98
+ 'https://api.github.com/repos/elastic/kibana/issues/1337/labels'
99
99
) ;
100
100
expect ( labels ) . toEqual ( [ 'backport' ] ) ;
101
101
} ) ;
@@ -126,7 +126,7 @@ myPrSuffix`
126
126
expect ( axiosPostMock ) . toHaveBeenCalledTimes ( 2 ) ;
127
127
const [ apiEndpoint , payload ] = axiosPostMock . mock . calls [ 0 ] ;
128
128
expect ( apiEndpoint ) . toBe (
129
- 'https://api.github.com/repos/elastic/kibana/pulls?access_token=undefined '
129
+ 'https://api.github.com/repos/elastic/kibana/pulls'
130
130
) ;
131
131
expect ( payload . title ) . toBe ( '[6.x] myCommitMessage (mySha)' ) ;
132
132
expect ( payload . body ) . toBe (
@@ -141,7 +141,7 @@ myPrSuffix`
141
141
const [ apiEndpoint , labels ] = axiosPostMock . mock . calls [ 1 ] ;
142
142
143
143
expect ( apiEndpoint ) . toBe (
144
- 'https://api.github.com/repos/elastic/kibana/issues/1337/labels?access_token=undefined '
144
+ 'https://api.github.com/repos/elastic/kibana/issues/1337/labels'
145
145
) ;
146
146
expect ( labels ) . toEqual ( [ 'backport' ] ) ;
147
147
} ) ;
0 commit comments