test: add test for alternative git ssh user name
Some checks are pending
CI / build (push) Waiting to run
CI / test (built) (push) Blocked by required conditions
CI / test (committed) (push) Blocked by required conditions
CI / commentTestSuiteHelp (push) Blocked by required conditions
CI / package (push) Blocked by required conditions

This commit is contained in:
b12f 2024-12-20 15:11:50 +01:00
parent 7a37b54f47
commit 71fb6da231
Signed by: b12f
GPG key ID: 729956E1124F8F26

View file

@ -66,6 +66,13 @@ describe('git-config-helper unit tests', () => {
expect(remote3.hostname).toEqual('github.internal.company')
expect(remote3.protocol).toEqual('SSH')
expect(remote3.repository).toEqual('peter-evans/create-pull-request')
const remote4 = GitConfigHelper.parseGitRemote(
'gitea@github.internal.company:peter-evans/create-pull-request.git'
)
expect(remote4.hostname).toEqual('github.internal.company')
expect(remote4.protocol).toEqual('SSH')
expect(remote4.repository).toEqual('peter-evans/create-pull-request')
})
test('parseGitRemote successfully parses GIT remote URLs', async () => {