Skip to content

Commit

Permalink
chore(package): update @octokit/rest to version 15.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Oct 10, 2018
1 parent 072b112 commit 4748c8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
"Gregor Martynus (https://twitter.com/gr2m)"
],
"dependencies": {
"@octokit/rest": "^15.2.0",
"@octokit/rest": "^15.13.1",
"@semantic-release/error": "^2.2.0",
"aggregate-error": "^1.0.0",
"bottleneck": "^2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions test/get-client.test.js
Expand Up @@ -39,8 +39,8 @@ test.serial('Use a http proxy', async t => {

await github.repos.get({repo: 'repo', owner: 'owner'});

t.is(proxyHandler.args[0][0].headers.accept, 'application/vnd.github.drax-preview+json');
t.is(serverHandler.args[0][0].headers.accept, 'application/vnd.github.drax-preview+json');
t.is(proxyHandler.args[0][0].headers.accept, 'application/vnd.github.v3+json');
t.is(serverHandler.args[0][0].headers.accept, 'application/vnd.github.v3+json');
t.regex(serverHandler.args[0][0].headers.via, /proxy/);
t.truthy(serverHandler.args[0][0].headers['x-forwarded-for'], /proxy/);

Expand Down Expand Up @@ -79,7 +79,7 @@ test.serial('Use a https proxy', async t => {

t.is(proxyHandler.args[0][0].url, `localhost:${serverPort}`);
t.is(proxyHandler.args[0][0].headers.foo, 'bar');
t.is(serverHandler.args[0][0].headers.accept, 'application/vnd.github.drax-preview+json');
t.is(serverHandler.args[0][0].headers.accept, 'application/vnd.github.v3+json');

await promisify(proxy.destroy).bind(proxy)();
await promisify(server.destroy).bind(server)();
Expand Down

0 comments on commit 4748c8a

Please sign in to comment.