mirror of
https://github.com/caprover/caprover
synced 2026-10-08 06:11:34 +00:00
Test SSH clone return behavior
This commit is contained in:
1 parent
edfdf56a13
commit
43ae30f713
1 file changed
+2
-1
@@ -47,7 +47,7 @@ test('configures simple-git for SSH key deployments', async () => {
|
||||
const raw = jest.fn().mockResolvedValue('')
|
||||
const env = configureGitMock(raw)
|
||||
|
||||
await GitHelper.clone(
|
||||
const result = await GitHelper.clone(
|
||||
'',
|
||||
'',
|
||||
'private key',
|
||||
@@ -56,6 +56,7 @@ test('configures simple-git for SSH key deployments', async () => {
|
||||
'/tmp/repository'
|
||||
)
|
||||
|
||||
expect(result).toBeUndefined()
|
||||
expect(mockedGit).toHaveBeenCalledWith({
|
||||
unsafe: {
|
||||
allowUnsafeSshCommand: true,
|
||||
|
||||
Reference in new issue
Block a user