diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2021-11-01 11:43:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-01 11:43:18 -0500 |
| commit | 0fc042ca35b9ee6d4c6dc650662d40f189018a49 (patch) | |
| tree | b357edb1a8f6da9760e4dc15a179d0db27d9bcaa /__test__/git-auth-helper.test.ts | |
| parent | d7a4963ed25cda3df63783c22befd89dcbc4508d (diff) | |
set insteadOf url for org-id (#621)v2.4.0
Diffstat (limited to '__test__/git-auth-helper.test.ts')
| -rw-r--r-- | __test__/git-auth-helper.test.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/__test__/git-auth-helper.test.ts b/__test__/git-auth-helper.test.ts index b39d352..e14e948 100644 --- a/__test__/git-auth-helper.test.ts +++ b/__test__/git-auth-helper.test.ts @@ -518,12 +518,17 @@ describe('git-auth-helper tests', () => { await authHelper.configureSubmoduleAuth() // Assert - expect(mockSubmoduleForeach).toHaveBeenCalledTimes(3) + expect(mockSubmoduleForeach).toHaveBeenCalledTimes(4) expect(mockSubmoduleForeach.mock.calls[0][0]).toMatch( /unset-all.*insteadOf/ ) expect(mockSubmoduleForeach.mock.calls[1][0]).toMatch(/http.*extraheader/) - expect(mockSubmoduleForeach.mock.calls[2][0]).toMatch(/url.*insteadOf/) + expect(mockSubmoduleForeach.mock.calls[2][0]).toMatch( + /url.*insteadOf.*git@github.com:/ + ) + expect(mockSubmoduleForeach.mock.calls[3][0]).toMatch( + /url.*insteadOf.*org-123456@github.com:/ + ) } ) @@ -770,7 +775,8 @@ async function setup(testName: string): Promise<void> { repositoryPath: '', sshKey: sshPath ? 'some ssh private key' : '', sshKnownHosts: '', - sshStrict: true + sshStrict: true, + workflowOrganizationId: 123456 } } |
