From cd695837468818a747276617316d0b299d1dc455 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Fri, 30 Nov 2018 01:11:00 -0500 Subject: [PATCH] test: delete unused test helper file --- test/helpers/mock-github.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 test/helpers/mock-github.js diff --git a/test/helpers/mock-github.js b/test/helpers/mock-github.js deleted file mode 100644 index e0a62040..00000000 --- a/test/helpers/mock-github.js +++ /dev/null @@ -1,16 +0,0 @@ -import nock from 'nock'; - -/** - * Retun a `nock` object setup to respond to a github authentication request. Other expectation and responses can be chained. - * - * @param {String} [githubToken='GH_TOKEN'] The github token to return in the authentication response. - * @param {String} [githubUrl='https://api.github.com'] The url on which to intercept http requests. - * @return {Object} A `nock` object ready to respond to a github authentication request. - */ -export default function authenticate({ - githubToken = 'GH_TOKEN', - githubUrl = 'https://api.github.com', - githubApiPathPrefix = '', -} = {}) { - return nock(`${githubUrl}/${githubApiPathPrefix}`, {reqheaders: {Authorization: `token ${githubToken}`}}); -}