File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 "eslint-plugin-prettier" : " ^2.3.0" ,
3737 "nock" : " ^9.1.0" ,
3838 "nyc" : " ^11.2.1" ,
39- "prettier" : " ~1.9.0 " ,
39+ "prettier" : " ~1.9.2 " ,
4040 "semantic-release" : " ^10.0.0" ,
4141 "sinon" : " ^4.0.0" ,
4242 "xo" : " ^0.18.2"
Original file line number Diff line number Diff line change @@ -8,9 +8,11 @@ import nock from 'nock';
88 * @param {String } [githubApiPathPrefix] The GitHub Enterprise API prefix.
99 * @return {Object } A `nock` object ready to respond to a github authentication request.
1010 */
11- export function authenticate (
12- { githubToken = 'GH_TOKEN' , githubUrl = 'https://api.github.com' , githubApiPathPrefix = '' } = { }
13- ) {
11+ export function authenticate ( {
12+ githubToken = 'GH_TOKEN' ,
13+ githubUrl = 'https://api.github.com' ,
14+ githubApiPathPrefix = '' ,
15+ } = { } ) {
1416 return nock ( `${ githubUrl } /${ githubApiPathPrefix } ` , { reqheaders : { Authorization : `token ${ githubToken } ` } } ) ;
1517}
1618
You can’t perform that action at this time.
0 commit comments