Skip to content

Commit

Permalink
Graphql mock test (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Mar 11, 2019
1 parent 4ac81f6 commit 2e17894
Show file tree
Hide file tree
Showing 9 changed files with 6,645 additions and 139 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
/node_modules/
test/fixtures/*/node_modules
.DS_Store
.vscode/
2 changes: 1 addition & 1 deletion lib/config.js
Expand Up @@ -4,7 +4,7 @@ const Configstore = require('configstore')
const pkg = require('../package.json')
const conf = new Configstore(pkg.name)

const api = process.env.NCM_API || 'api.nodesource.com'
const api = process.env.NCM_API || 'https://api.nodesource.com'

const keys = {
token: ' ',
Expand Down
4 changes: 1 addition & 3 deletions lib/util.js
Expand Up @@ -23,9 +23,7 @@ module.exports = {
}

function formatAPIURL (pathname, query) {
return url.format({
protocol: 'https',
hostname: api,
return api + url.format({
pathname,
query
})
Expand Down

0 comments on commit 2e17894

Please sign in to comment.