mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-29 14:42:59 +02:00
Merge 720e23ac84
into 5c3ccc22eb
This commit is contained in:
commit
d34d2679db
3 changed files with 15 additions and 7 deletions
|
@ -482,6 +482,7 @@ describe('git-auth-helper tests', () => {
|
|||
)
|
||||
settings.persistCredentials = false
|
||||
settings.sshKey = ''
|
||||
settings.submodules = true
|
||||
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
||||
await authHelper.configureAuth()
|
||||
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
||||
|
@ -515,6 +516,7 @@ describe('git-auth-helper tests', () => {
|
|||
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsFalseAndSshKeySet
|
||||
)
|
||||
settings.persistCredentials = false
|
||||
settings.submodules = true
|
||||
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
||||
await authHelper.configureAuth()
|
||||
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
||||
|
@ -541,6 +543,7 @@ describe('git-auth-helper tests', () => {
|
|||
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsTrueAndSshKeyNotSet
|
||||
)
|
||||
settings.sshKey = ''
|
||||
settings.submodules = true
|
||||
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
||||
await authHelper.configureAuth()
|
||||
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
||||
|
@ -580,6 +583,7 @@ describe('git-auth-helper tests', () => {
|
|||
await setup(
|
||||
configureSubmoduleAuth_configuresSubmodulesWhenPersistCredentialsTrueAndSshKeySet
|
||||
)
|
||||
settings.submodules = true
|
||||
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
||||
await authHelper.configureAuth()
|
||||
const mockSubmoduleForeach = git.submoduleForeach as jest.Mock<any, any>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue