File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
" Gregor Martynus (https://twitter.com/gr2m)"
17
17
],
18
18
"dependencies" : {
19
- "@octokit/rest" : " ^15.2.0 " ,
19
+ "@octokit/rest" : " ^15.13.1 " ,
20
20
"@semantic-release/error" : " ^2.2.0" ,
21
21
"aggregate-error" : " ^1.0.0" ,
22
22
"bottleneck" : " ^2.0.1" ,
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ test.serial('Use a http proxy', async t => {
39
39
40
40
await github . repos . get ( { repo : 'repo' , owner : 'owner' } ) ;
41
41
42
- t . is ( proxyHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.drax-preview +json' ) ;
43
- t . is ( serverHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.drax-preview +json' ) ;
42
+ t . is ( proxyHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.v3 +json' ) ;
43
+ t . is ( serverHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.v3 +json' ) ;
44
44
t . regex ( serverHandler . args [ 0 ] [ 0 ] . headers . via , / p r o x y / ) ;
45
45
t . truthy ( serverHandler . args [ 0 ] [ 0 ] . headers [ 'x-forwarded-for' ] , / p r o x y / ) ;
46
46
@@ -79,7 +79,7 @@ test.serial('Use a https proxy', async t => {
79
79
80
80
t . is ( proxyHandler . args [ 0 ] [ 0 ] . url , `localhost:${ serverPort } ` ) ;
81
81
t . is ( proxyHandler . args [ 0 ] [ 0 ] . headers . foo , 'bar' ) ;
82
- t . is ( serverHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.drax-preview +json' ) ;
82
+ t . is ( serverHandler . args [ 0 ] [ 0 ] . headers . accept , 'application/vnd.github.v3 +json' ) ;
83
83
84
84
await promisify ( proxy . destroy ) . bind ( proxy ) ( ) ;
85
85
await promisify ( server . destroy ) . bind ( server ) ( ) ;
You can’t perform that action at this time.
0 commit comments