mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
fix tests
This commit is contained in:
@ -628,7 +628,7 @@ func TestGitCommandResetToCommit(t *testing.T) {
|
|||||||
return exec.Command("echo")
|
return exec.Command("echo")
|
||||||
}
|
}
|
||||||
|
|
||||||
assert.NoError(t, gitCmd.ResetToCommit("78976bc", "hard"))
|
assert.NoError(t, gitCmd.ResetToCommit("78976bc", "hard", RunCommandOptions{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestGitCommandNewBranch is a function.
|
// TestGitCommandNewBranch is a function.
|
||||||
@ -1439,7 +1439,7 @@ func TestGitCommandCheckout(t *testing.T) {
|
|||||||
t.Run(s.testName, func(t *testing.T) {
|
t.Run(s.testName, func(t *testing.T) {
|
||||||
gitCmd := NewDummyGitCommand()
|
gitCmd := NewDummyGitCommand()
|
||||||
gitCmd.OSCommand.command = s.command
|
gitCmd.OSCommand.command = s.command
|
||||||
s.test(gitCmd.Checkout("test", s.force))
|
s.test(gitCmd.Checkout("test", CheckoutOptions{Force: s.force}))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user