diff --git a/package.json b/package.json index 276bb05..f918e2a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "eslint-plugin-prettier": "^2.3.0", "nock": "^9.0.22", "nyc": "^11.2.1", - "prettier": "~1.9.0", + "prettier": "~1.9.2", "proxyquire": "^1.7.1", "semantic-release": "^10.0.0", "sinon": "^4.0.0", diff --git a/test/helpers/mock-github.js b/test/helpers/mock-github.js index dbac387..ed76c50 100644 --- a/test/helpers/mock-github.js +++ b/test/helpers/mock-github.js @@ -1,7 +1,9 @@ import nock from 'nock'; -export default function authenticate( - {githubToken = 'GH_TOKEN', githubUrl = 'https://api.github.com', githubApiPathPrefix = ''} = {} -) { +export default function authenticate({ + githubToken = 'GH_TOKEN', + githubUrl = 'https://api.github.com', + githubApiPathPrefix = '', +} = {}) { return nock(`${githubUrl}/${githubApiPathPrefix}`, {reqheaders: {authorization: `token ${githubToken}`}}); }