Skip to content

Commit eb91a43

Browse files
committed
Test properties of cmdObj for Push
1 parent 9272276 commit eb91a43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/commands/git_commands/sync_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ func TestSyncPush(t *testing.T) {
100100
t.Run(s.testName, func(t *testing.T) {
101101
instance := buildSyncCommands(commonDeps{})
102102
task := gocui.NewFakeTask()
103-
s.test(instance.PushCmdObj(task, s.opts))
103+
cmdObj, err := instance.PushCmdObj(task, s.opts)
104+
if err == nil {
105+
assert.True(t, cmdObj.ShouldLog())
106+
assert.Equal(t, cmdObj.GetCredentialStrategy(), oscommands.PROMPT)
107+
}
108+
s.test(cmdObj, err)
104109
})
105110
}
106111
}

0 commit comments

Comments
 (0)