From 0096e3aa508c1dcf50b60ac8bc9301f3e3015df7 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Sun, 3 Feb 2019 22:16:43 -0600 Subject: [PATCH] feat(git): bumped to the beta of the project-scaffolder to get setting of the origin after creating a remote repo for travi/github-scaffolder#1 --- test/integration/features/step_definitions/common-steps.js | 1 + .../features/step_definitions/vcs/github-api-steps.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/features/step_definitions/common-steps.js b/test/integration/features/step_definitions/common-steps.js index 55fba32d4..ee223cfbf 100644 --- a/test/integration/features/step_definitions/common-steps.js +++ b/test/integration/features/step_definitions/common-steps.js @@ -31,6 +31,7 @@ Before(async () => { const octokitFiles = await readdir(resolve(...pathToNodeModules, 'octokit-pagination-methods/lib/')); stubbedFs({ [`${process.env.HOME}/.netrc`]: `machine github.com\n login ${githubToken}`, + [`${process.env.HOME}/.gitconfig`]: '[github]\n\tuser = travi', node_modules: { 'octokit-pagination-methods': { lib: (await Promise.all(loadOctokitFiles(octokitFiles))).reduce(buildOctokitFileMap(octokitFiles), {}) diff --git a/test/integration/features/step_definitions/vcs/github-api-steps.js b/test/integration/features/step_definitions/vcs/github-api-steps.js index 15cfb907b..4ca89648e 100644 --- a/test/integration/features/step_definitions/vcs/github-api-steps.js +++ b/test/integration/features/step_definitions/vcs/github-api-steps.js @@ -22,5 +22,8 @@ Given(/^the GitHub token is valid$/, async function () { githubScope .matchHeader('Authorization', `token ${githubToken}`) .post('/user/repos') - .reply(OK); + .reply(OK, { + ssl_url: any.url(), + https_url: any.url() + }); });