| Original line number | Diff line number | Diff line |
|---|---|---|
| @@ -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.*[email protected]:/
|
||
)
|
||
expect(mockSubmoduleForeach.mock.calls[3][0]).toMatch(
|
||
/url.*insteadOf.*[email protected]:/
|
||
)
|
||
}
|
||
)
|
||
| @@ -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
|
||
}
|
||
}
|
||
+30
−15
+102
−11
+14
−5
+10
−8
Loading