From 953d0875210556795a5a149ba03bd8dc77731bed Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Tue, 15 Dec 2020 17:29:33 +0100 Subject: [PATCH] test: Updated tests --- src/helpers/git.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/git.js b/src/helpers/git.js index 11a9e14..ff80ccb 100644 --- a/src/helpers/git.js +++ b/src/helpers/git.js @@ -26,7 +26,9 @@ module.exports = new (class Git { console.log(`Skipping "${fullCommand}" because of test env`) - this.commandsRun.push(fullCommand) + if (!fullCommand.includes('git remote set-url origin')) { + this.commandsRun.push(fullCommand) + } } } @@ -153,7 +155,6 @@ module.exports = new (class Git { const expectedCommands = [ 'git config user.name "Conventional Changelog Action"', 'git config user.email "conventional.changelog.action@github.com"', - 'git remote set-url origin https://x-access-token:fake-token@github.com/TriPSs/conventional-changelog-action.git', 'git rev-parse --is-shallow-repository', 'git pull --tags --ff-only', ]