mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Fix moving a commit across an exec todo
This commit is contained in:
@ -89,12 +89,8 @@ func TestRebaseCommands_moveTodoDown(t *testing.T) {
|
||||
todoToMoveDown: Todo{Hash: "5678"},
|
||||
expectedErr: "",
|
||||
expectedTodos: []todo.Todo{
|
||||
/* EXPECTED:
|
||||
{Command: todo.Pick, Commit: "1234"},
|
||||
{Command: todo.Pick, Commit: "5678"},
|
||||
ACTUAL: */
|
||||
{Command: todo.Pick, Commit: "5678"},
|
||||
{Command: todo.Pick, Commit: "1234"},
|
||||
{Command: todo.Exec, ExecCommand: "make test"},
|
||||
},
|
||||
},
|
||||
@ -250,12 +246,8 @@ func TestRebaseCommands_moveTodoUp(t *testing.T) {
|
||||
expectedErr: "",
|
||||
expectedTodos: []todo.Todo{
|
||||
{Command: todo.Exec, ExecCommand: "make test"},
|
||||
/* EXPECTED:
|
||||
{Command: todo.Pick, Commit: "1234"},
|
||||
{Command: todo.Pick, Commit: "5678"},
|
||||
ACTUAL: */
|
||||
{Command: todo.Pick, Commit: "5678"},
|
||||
{Command: todo.Pick, Commit: "1234"},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user