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
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:
parent
7a37b54f47
commit
71fb6da231
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue