1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-22 04:42:37 +03:00

Test properties of cmdObj for Push

This commit is contained in:
Stefan Haller
2025-11-15 18:25:36 +01:00
parent 9272276247
commit eb91a43d58

View File

@@ -100,7 +100,12 @@ func TestSyncPush(t *testing.T) {
t.Run(s.testName, func(t *testing.T) {
instance := buildSyncCommands(commonDeps{})
task := gocui.NewFakeTask()
s.test(instance.PushCmdObj(task, s.opts))
cmdObj, err := instance.PushCmdObj(task, s.opts)
if err == nil {
assert.True(t, cmdObj.ShouldLog())
assert.Equal(t, cmdObj.GetCredentialStrategy(), oscommands.PROMPT)
}
s.test(cmdObj, err)
})
}
}